/* 상세 옵션표 — 셀프신청서 작성방법 (통신사별 가이드) */
#sub .phone-detail form .phone .phone-form table tbody tr.self-writing-methods-row th.self-writing-methods-th,
#sub .phone-detail form .phone .phone-info .phone-form table tbody tr.self-writing-methods-row th.self-writing-methods-th,
#sub .phone-detail.ver2 .right_box .phone-form table tbody tr.self-writing-methods-row th.self-writing-methods-th,
#sub .phone-detail.ver3 .right_box .phone-form table tbody tr.self-writing-methods-row th.self-writing-methods-th {
  vertical-align: middle;
  line-height: 1.35;
  letter-spacing: -0.4px;
  white-space: normal;
}

#sub .phone-detail .self-writing-methods-td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  overflow: hidden;
}

#sub .phone-detail .self-guide-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1px;
}

#sub .phone-detail .self-guide-btn {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  padding: 10px 4px 9px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #d8dde6;
  text-decoration: none !important;
  color: #222 !important;
  font-family: 's-core-dream-medium', sans-serif;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

#sub .phone-detail .self-guide-btn:hover {
  transform: translateY(-1px);
}

#sub .phone-detail .self-guide-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

#sub .phone-detail .self-guide-label {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}

#sub .phone-detail .self-guide-label .self-guide-name {
  display: block;
  font-family: 's-core-dream-bold', sans-serif;
  font-size: 12px;
  letter-spacing: -0.4px;
}

#sub .phone-detail .self-guide-label .self-guide-sub {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.25;
  opacity: 0.88;
}

#sub .phone-detail .self-guide-doc {
  display: none; /* 좁은 폭에서 아이콘 제거 → 글씨 공간 확보 */
}

#sub .phone-detail .self-guide-btn.is-sk {
  border-color: #ff7a1a;
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.18), 0 4px 12px rgba(255, 122, 26, 0.16);
  color: #e85d00 !important;
}

#sub .phone-detail .self-guide-btn.is-kt {
  border-color: #222;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(0, 0, 0, 0.08);
  color: #111 !important;
}

#sub .phone-detail .self-guide-btn.is-lg {
  border-color: #e6007e;
  box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.16), 0 4px 12px rgba(230, 0, 126, 0.14);
  color: #c4006a !important;
}

@media (min-width: 768px) {
  #sub .phone-detail .self-guide-btns {
    gap: 8px;
  }
  #sub .phone-detail .self-guide-btn {
    padding: 12px 8px 11px;
    border-radius: 14px;
  }
  #sub .phone-detail .self-guide-logo {
    width: 24px;
    height: 24px;
  }
  #sub .phone-detail .self-guide-label .self-guide-name {
    font-size: 13px;
  }
  #sub .phone-detail .self-guide-label .self-guide-sub {
    font-size: 11px;
  }
}
