@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@100..900&display=swap');

@font-face {
  font-family: 'HangeulJaemin4';
  src: url('/wp-content/plugins/sajutalktalk_store/assets/fonts/Hangeuljaemin4-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 반응형 오른쪽 여백 방지 */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

.sts-image-with-name {
  position: relative;
  max-width: 100%;
}

.sts-image-with-name .sts-name-overlay {
  width: 100%;
  position: absolute;
  transform: translate(-50%, -50%);
  color: #111;
  font-weight: 400;
  font-size: 22px;
  font-family: 'HangeulJaemin4', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  white-space: pre-line;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
  z-index: 10;
}
/* .sts-single-flow {
    max-width: 960px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
} */

/* .sts-single-flow__header {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.sts-single-flow__media {
    flex: 0 0 280px;
} */

.sts-single-flow__main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 비디오 + 이미지 오버레이 */
.sts-video-with-overlay {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sts-video-background {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sts-video-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sts-single-flow__gallery {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.sts-single-flow__thumb img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.sts-single-flow__intro {
    flex: 1 1 320px;
}

.sts-single-flow__title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.sts-single-flow__price {
    font-size: 20px;
    margin-bottom: 16px;
    color: #0f172a;
}

.sts-single-flow__login {
    margin-top: 12px;
}

.sts-single-flow__login-status {
    margin: 0;
    color: #2563eb;
    font-weight: 600;
}

.sts-single-flow__errors {
    margin: 24px 0;
    padding: 16px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sts-single-flow__errors ul {
    margin: 0;
    padding-left: 18px;
}

.sts-single-flow__form-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sts-single-flow__options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sts-option-group {
    padding: 10px;
}

.sts-option-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.sts-option-input,
.sts-option-select,
.sts-option-textarea,
.sts-option-date {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sts-option-input:focus,
.sts-option-select:focus,
.sts-option-textarea:focus,
.sts-option-date:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.sts-option-textarea {
    min-height: 120px;
    resize: vertical;
}

.sts-option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.sts-option-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sts-option-choice input {
    display: none;
}

.sts-option-choice span {
    font-size: 14px;
    color: #1f2937;
}

.sts-option-choice input:checked + span,
.sts-option-choice input[checked] + span,
.sts-option-choice--gender input:checked + span {
    color: #1d4ed8;
    font-weight: 600;
}

.sts-option-choice input:checked ~ span,
.sts-option-choice--gender input:checked ~ span {
    color: #1d4ed8;
    font-weight: 600;
}

.sts-option-choice input:checked,
.sts-option-choice input[checked] {
    border-color: #6366f1;
}

.sts-option-choice input:checked ~ span,
.sts-option-choice input:checked ~ .sts-option-choice__label {
    color: #1d4ed8;
}

.sts-option-choice--time input:checked ~ span {
    color: #0f172a;
}

.sts-single-flow__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 인라인 결제 버튼 (랜딩9 아래) */
.sts-single-flow__actions-inline {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

/* 플로팅 버튼을 위한 하단 여백 */
.sts-single-flow--form,
.sts-single-flow--confirm {
    padding-bottom: 100px;
}

/* 플로팅 결제 버튼 */
#sts-floating-actions,
#sts-floating-login-actions,
#sts-floating-form-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 16px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

#sts-floating-actions.sts-floating-hidden,
#sts-floating-form-actions.sts-floating-hidden {
    transform: translateX(-50%) translateY(100%);
}

#sts-floating-actions.sts-floating-visible,
#sts-floating-login-actions.sts-floating-visible,
#sts-floating-form-actions.sts-floating-visible {
    transform: translateX(-50%) translateY(0);
}

.sts-single-flow__next-button,
.sts-single-flow__confirm-button,
.sts-single-flow__back-button {
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.sts-single-flow__next-button,
.sts-single-flow__confirm-button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    width: 90%;
}

/* 로딩 상태 */
.sts-single-flow__next-button.is-loading,
.sts-single-flow__confirm-button.is-loading {
    pointer-events: none;
    font-size: 15px;
}

/* 로딩 텍스트 */
.sts-loading-text {
    display: inline-block;
}

/* 로딩 별 */
.sts-loading-star {
    display: inline-block;
    margin-left: 6px;
    font-size: 18px;
    animation: starPulse 0.5s ease-in-out infinite;
}

/* 별 펄스 애니메이션 */
@keyframes starPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

.sts-single-flow__back-button {
    background: #e0e7ff;
    color: #312e81;
}


.sts-single-flow__confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.3);
}

.sts-single-flow__back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.15);
}

.sts-single-flow__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 24px;
}

.sts-single-flow__details {
    flex: 1 1 320px;
}

.sts-single-flow__option-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sts-single-flow__option-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.sts-single-flow__option-value {
    display: block;
    color: #4b5563;
    margin-top: 4px;
}

.sts-single-flow__notice {
    min-height: 24px;
    margin-bottom: 16px;
    color: #b91c1c;
}

@media (max-width: 424px) {
    /* .sts-single-flow {
        padding: 24px;
    }

    .sts-single-flow__header {
        flex-direction: column;
        align-items: stretch;
    }

    .sts-single-flow__media {
        flex: 1 1 auto;
    }

    .sts-single-flow__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sts-single-flow__next-button,
    .sts-single-flow__confirm-button,
    .sts-single-flow__back-button {
        width: 100%;
    } */
    .sts-image-with-name .sts-name-overlay {
        font-size: 18px;
    }
    
    /* 점수 설명 텍스트 모바일 폰트 사이즈 조절 */
    .sts-name-overlay[style*="font-size: 20px"] {
        font-size: 14px !important;
    }
    
    .sts-name-overlay[style*="font-size: 16px"] {
        font-size: 12px !important;
    }
    
    /* 모바일에서 플로팅 버튼 패딩 조정 */
    #sts-floating-actions,
    #sts-floating-login-actions,
    #sts-floating-form-actions {
        padding: 12px;
    }
    
    #sts-floating-actions .sts-single-flow__confirm-button,
    #sts-floating-login-actions .sts-single-flow__login-button,
    #sts-floating-form-actions .sts-single-flow__next-button {
        width: 100%;
    }
    
    /* 모바일에서 로딩 텍스트 크기 조정 */
    .sts-single-flow__next-button.is-loading {
        font-size: 13px;
    }
    
    .sts-loading-text {
        font-size: 13px;
    }
}

.sts-single-flow__notice.is-error {
    color: #b91c1c;
}

/* 하얀색 텍스트 박스 */
.sts-white-box-container {
    background: #000;
    padding: 40px 20px;
    width: 100%;
}

.sts-white-box {
    background: #fff;
    border-radius: 20px;
    padding: 10px 30px 30px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.sts-white-box p {
    margin: 0;
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

/* Type 타이틀 */
.sts-box-title {
    font-family: 'Hahmlet', serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 20px 0 10px 0;
}

.sts-box-title:first-child {
    margin-top: 0;
}

/* 운세 섹션 */
.sts-fortune-section {
    width: 100%;
    font-family: 'Hahmlet', serif;
}

.sts-fortune-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
    border-bottom: 1px solid #111827;
}

.sts-fortune-header:hover {
    opacity: 0.8;
}

.sts-toggle-icon {
    font-size: 22px;
    color: #111827;
    transition: transform 0.3s ease;
    display: inline-block;
}

.sts-fortune-header.is-open .sts-toggle-icon {
    transform: rotate(90deg);
}

.sts-fortune-title {
    font-family: 'Hahmlet', serif;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.sts-fortune-content {
    padding-top: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sts-month-item {
    margin-bottom: 10px;
}

.sts-month-item:last-child {
    margin-bottom: 0;
}

.sts-month-title {
    font-family: 'Hahmlet', serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -1.4px;
    color: #1f2937;
}

.sts-month-detail {
    font-family: 'Hahmlet', serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 생년월일 라벨과 양력/음력 옵션을 같은 라인에 */
.sts-birthdate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sts-birthdate-label {
    margin: 0 !important;
}

.sts-birthdate-header .custom-product-option__choices--birth {
    gap: 8px;
    margin: 0;
}
