@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
    --wcsc-primary: #8B4513;
    --wcsc-primary-light: #A0522D;
    --wcsc-primary-bg: #fdf8f3;
    --wcsc-primary-bg2: #faf0e6;
    --wcsc-primary-border: #e5d9cc;
    --wcsc-primary-text: #6B3410;
    --wcsc-primary-muted: #8B6540;
    --wcsc-completed: #6B8E23
}

#wcsc-checkout-wrap * {
    box-sizing: border-box
}

body.page-template-default #page>header,
body.page-template-default #page>footer,
body.page-template-default .site-header,
body.page-template-default .site-footer,
body.page-template-default .entry-header,
body.page-template-default .page-header,
body.page-template-default .site-info,
body.page-template-default .nav-menu,
body.page-template-default .main-navigation,
body.page-template-default #site-navigation,
body.page-template-default .site-branding,
body.page-template-default .footer-widgets,
body.page-template-default #secondary,
body.page-template-default .sidebar,
body.woocommerce-page .site-header,
body.woocommerce-page .site-footer,
body.woocommerce-page .entry-header,
body.woocommerce-page .page-header,
body.woocommerce-page .site-info,
body.woocommerce-page .main-navigation,
body.woocommerce-page #site-navigation,
body.woocommerce-page .site-branding,
body.woocommerce-page .footer-widgets,
body.woocommerce-page #secondary,
body.woocommerce-page .sidebar {
    display: none !important
}

.page-template-default .entry-content,
.page-template-default .site-content,
.page-template-default .content-area,
.page-template-default .site-main,
.page-template-default article,
.woocommerce-page .entry-content,
.woocommerce-page .site-content,
.woocommerce-page .content-area,
.woocommerce-page .site-main,
.woocommerce-page article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important
}

.separate-containers .inside-article {
    padding: 0 0 20px 0 !important
}

body.page-template-default,
body.woocommerce-page {
    background: #fff
}

.woocommerce-order a.cancel,
.woocommerce a.button.cancel {
    display: none !important
}

#wcsc-checkout-wrap {
    max-width: 520px;
    margin: 0 auto;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    padding: 20px 16px 40px;
    min-height: 100vh
}

.wcsc-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0 32px
}

.wcsc-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .4;
    transition: opacity .3s
}

.wcsc-step-item.active,
.wcsc-step-item.completed {
    opacity: 1
}

.wcsc-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 700;
    transition: background .3s
}

.wcsc-step-item.active .wcsc-step-num {
    background: var(--wcsc-primary)
}

.wcsc-step-item.completed .wcsc-step-num {
    background: var(--wcsc-completed)
}

.wcsc-step-label {
    font-size: 21px;
    font-weight: 600;
    color: #666;
    letter-spacing: -.02em
}

.wcsc-step-item.active .wcsc-step-label {
    color: var(--wcsc-primary)
}

.wcsc-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
    max-width: 60px;
    transition: background .3s
}

.wcsc-step-line.completed {
    background: var(--wcsc-completed)
}

.wcsc-step-content {
    display: none
}

.wcsc-step-content.active {
    display: block;
    animation: wcsc-fadeIn .3s ease
}

.wcsc-error {
    margin-top: 14px
}

.wcsc-payment-fields>p,
.wcsc-payment-fields>div:not(fieldset):not(.form-row)>p,
.wcsc-payment-fields>span,
.wcsc-payment-fields>div.payment_method_description {
    display: none !important
}

.wcsc-payment-fields:not(:has(fieldset)) {
    display: none !important
}

@keyframes wcsc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.wcsc-section-title {
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 20px;
    letter-spacing: -.03em
}

.wcsc-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.wcsc-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04)
}

.wcsc-product-card:hover {
    border-color: #c0a080;
    box-shadow: 0 3px 12px rgba(139, 69, 19, .08)
}

.wcsc-product-card.selected {
    border-color: var(--wcsc-primary);
    background: linear-gradient(135deg, var(--wcsc-primary-bg) 0%, var(--wcsc-primary-bg2) 100%);
    box-shadow: 0 3px 16px rgba(139, 69, 19, .12)
}

.wcsc-product-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.wcsc-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #d4380d, #e8541e);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: -.01em;
    margin-bottom: 8px;
    align-self: flex-start
}

.wcsc-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%
}

.wcsc-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.wcsc-product-name {
    font-size: 21px;
    font-weight: 600;
    color: #1a1a1a
}

.wcsc-product-discount {
    font-size: 19px;
    color: #d4380d;
    font-weight: 600
}

.wcsc-product-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.wcsc-price-regular {
    font-size: 18px;
    color: #999;
    text-decoration: line-through
}

.wcsc-price-sale {
    font-size: 21px;
    font-weight: 800;
    color: #1a1a1a
}

/* ── Variation 선택 카드 ── */
.wcsc-variation-section {
    margin-top: 44px
}

.wcsc-variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px
}

/* ── 사이즈 안내 배너 ── */
.wcsc-size-notice {
    margin-bottom: 14px
}

.wcsc-size-notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--wcsc-primary-bg);
    border: 1.5px dashed var(--wcsc-primary-border);
    border-radius: 12px
}

.wcsc-size-notice-icon {
    font-size: 20px;
    flex-shrink: 0
}

.wcsc-size-notice-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.wcsc-size-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #333
}

.wcsc-size-notice-sub {
    font-size: 13px;
    font-weight: 400;
    color: #888
}

.wcsc-size-notice-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--wcsc-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
    -webkit-tap-highlight-color: transparent
}

.wcsc-size-notice-btn:hover {
    background: var(--wcsc-primary-light);
    color: #fff
}

.wcsc-size-notice-btn:focus,
.wcsc-size-notice-btn:active {
    outline: none;
    background: var(--wcsc-primary);
    color: #fff
}

.wcsc-variation-title {
    font-size: 23px;
    font-weight: 500;
    margin: 0
}

.wcsc-variation-cards {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.wcsc-variation-card {
    position: relative;
    cursor: pointer;
    margin: 0
}

.wcsc-variation-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.wcsc-vcard-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: #fff;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04)
}

.wcsc-variation-card:hover .wcsc-vcard-inner {
    border-color: #b0b0b0
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner {
    border-color: var(--wcsc-primary);
    background: linear-gradient(135deg, var(--wcsc-primary-bg), var(--wcsc-primary-bg2));
    box-shadow: 0 2px 12px rgba(139, 69, 19, .12)
}

.wcsc-vcard-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0d6cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    transition: background .2s ease
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-circle {
    background: var(--wcsc-primary)
}

.wcsc-vcard-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0
}

.wcsc-vcard-label {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px
}

.wcsc-vcard-desc {
    font-size: 18px;
    font-weight: 400;
    color: #999
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-label {
    color: var(--wcsc-primary-text)
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-desc {
    color: var(--wcsc-primary-muted)
}

.wcsc-vcard-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #ddd;
    transition: all .2s ease
}

.wcsc-vcard-check circle {
    fill: none;
    transition: fill .2s ease
}

.wcsc-vcard-check path {
    transition: stroke .2s ease
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-check {
    color: var(--wcsc-primary)
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-check circle {
    fill: var(--wcsc-primary)
}

.wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-check path {
    stroke: #fff
}

/* ── 컴팩트형 (3열) 사이즈 레이아웃 ── */
.wcsc-size-layout-compact {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.wcsc-size-layout-compact .wcsc-variation-card {
    margin: 0
}

.wcsc-size-layout-compact .wcsc-vcard-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 8px;
    gap: 8px
}

.wcsc-size-layout-compact .wcsc-vcard-circle {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important
}

.wcsc-size-layout-compact .wcsc-vcard-text {
    align-items: center;
    gap: 5px
}

.wcsc-size-layout-compact .wcsc-vcard-label {
    font-size: 20px;
    font-weight: 400;
    color: #999;
    justify-content: center
}

.wcsc-size-layout-compact .wcsc-vcard-desc {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a
}

.wcsc-vcard-desc-sub {
    font-size: 18px;
    font-weight: 400;
    color: #999
}

.wcsc-size-layout-compact .wcsc-vcard-desc-sub {
    font-size: 18px;
    color: #999;
    text-align: center
}

.wcsc-size-layout-compact .wcsc-vcard-check {
    display: none !important
}

.wcsc-size-layout-compact .wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-label {
    color: #999
}

.wcsc-size-layout-compact .wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-desc {
    color: #1a1a1a
}

.wcsc-size-layout-compact .wcsc-variation-card input:checked+.wcsc-vcard-inner .wcsc-vcard-desc-sub {
    color: #999
}

/* ── 사이즈 혼합 모드 ── */
.wcsc-mix-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-shrink: 0
}

.wcsc-mix-minus,
.wcsc-mix-plus {
    width: 32px;
    height: 32px;
    border: 1.5px solid #ddd !important;
    background: #fff !important;
    font-size: 18px;
    font-weight: 700;
    color: #555 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    outline: none !important
}

.wcsc-mix-minus:focus,
.wcsc-mix-plus:focus,
.wcsc-mix-minus:active,
.wcsc-mix-plus:active {
    outline: none !important;
    background: #fff !important;
    color: #555 !important;
    border-color: #ddd !important
}

.wcsc-mix-minus {
    border-radius: 8px 0 0 8px
}

.wcsc-mix-plus {
    border-radius: 0 8px 8px 0
}


.wcsc-mix-count {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1.5px solid #ddd;
    border-bottom: 1.5px solid #ddd;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #fafafa
}

.wcsc-variation-card.selected .wcsc-mix-count {
    color: var(--wcsc-primary);
    font-weight: 800
}

.wcsc-mix-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 14px;
    color: #666;
    transition: all .2s ease
}

.wcsc-mix-summary.wcsc-mix-complete {
    background: #e8f5e9;
    color: #2e7d32
}

.wcsc-mix-summary.wcsc-mix-complete .wcsc-mix-current {
    color: #2e7d32
}

.wcsc-mix-summary.wcsc-mix-over {
    background: #fce4ec;
    color: #c62828
}

.wcsc-mix-current {
    font-size: 18px;
    margin: 0 2px
}

/* 혼합 모드 활성 시 배너: 아이콘·텍스트 숨기고 버튼만 표시 */
.wcsc-mix-active .wcsc-size-notice-content {
    border-color: var(--wcsc-primary);
    justify-content: center
}

.wcsc-mix-active .wcsc-size-notice-icon,
.wcsc-mix-active .wcsc-size-notice-text {
    display: none
}

/* 컴팩트 레이아웃에서 혼합 모드 */
.wcsc-size-layout-compact .wcsc-mix-qty-ctrl {
    margin: 4px auto 0;
    transform: scale(0.9)
}

/* ── 배송 정보 폼 ── */
.wcsc-billing-form {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.wcsc-form-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden
}

.wcsc-form-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 16px 18px 0
}

.wcsc-form-card-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.wcsc-form-row-inline {
    display: flex;
    gap: 10px
}

.wcsc-form-col {
    flex: 1
}

.wcsc-form-row input[type="text"],
.wcsc-form-row input[type="tel"],
.wcsc-form-row input[type="email"],
.wcsc-form-row textarea,
.wcsc-form-row-inline input[type="text"],
.wcsc-form-row-inline input[type="tel"],
.wcsc-form-row-inline input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color .2s;
    background: #fafafa;
    color: #333
}

.wcsc-form-row input::placeholder,
.wcsc-form-row-inline input::placeholder,
.wcsc-form-row textarea::placeholder {
    color: #777
}

.wcsc-form-row input:focus,
.wcsc-form-row textarea:focus,
.wcsc-form-row-inline input:focus,
.wcsc-select:focus {
    outline: none;
    border-color: var(--wcsc-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, .08);
    background: #fff
}

.wcsc-select {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-family: inherit;
    background: #fafafa;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .2s
}

.wcsc-postcode-row {
    display: flex;
    gap: 8px
}

.wcsc-postcode-row input {
    flex: 1
}

.wcsc-btn-postcode {
    padding: 12px 16px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s
}

.wcsc-btn-postcode:hover {
    background: #444
}

/* ── 주문 요약 ── */
.wcsc-order-summary {
    background: #f9f7f4;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px
}

.wcsc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e0d8
}

.wcsc-summary-count {
    font-size: 14px;
    font-weight: 400;
    color: #999
}

.wcsc-summary-product-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0
}

.wcsc-summary-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.wcsc-summary-product {
    font-size: 17px;
    font-weight: 600;
    color: #333
}

.wcsc-summary-option {
    font-size: 14px;
    color: #999
}

.wcsc-summary-price {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    white-space: nowrap
}

.wcsc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 16px;
    color: #555
}

.wcsc-summary-divider {
    height: 1px;
    background: #e5e0d8;
    margin: 8px 0
}

.wcsc-summary-total {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    padding-top: 10px
}

.wcsc-summary-total-val {
    color: var(--wcsc-primary);
    font-size: 24px;
    font-weight: 800
}

/* ── 결제 수단 ── */
.wcsc-payment-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px
}

#wcsc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px
}

.wcsc-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    background: #fff
}

.wcsc-payment-card.selected {
    border-color: var(--wcsc-primary);
    background: var(--wcsc-primary-bg)
}

.wcsc-payment-card.selected .wcsc-payment-check svg circle {
    fill: var(--wcsc-primary);
    stroke: var(--wcsc-primary)
}

.wcsc-payment-card.selected .wcsc-payment-check svg path {
    stroke: #fff
}

.wcsc-payment-fields {
    background: linear-gradient(135deg, #fdfcfa 0%, #f7f4f0 100%) !important;
    border: 1.5px solid #e5ddd4 !important;
    border-radius: 16px !important;
    padding: 24px 22px 20px !important;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 12px rgba(139, 69, 19, .04) !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 4% !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset>.clear,
#wcsc-checkout-wrap .wcsc-payment-fields fieldset>div.clear {
    display: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields p {
    margin: 0 0 18px !important
}

#wcsc-checkout-wrap .wcsc-payment-fields p:last-child,
#wcsc-checkout-wrap .wcsc-payment-fields p:last-of-type {
    margin-bottom: 0 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields p label,
#wcsc-checkout-wrap .wcsc-payment-fields label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #5a4a3a !important;
    display: block !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: -.01em !important
}

#wcsc-checkout-wrap .wcsc-payment-fields label abbr,
#wcsc-checkout-wrap .wcsc-payment-fields .required {
    display: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields .form-row {
    margin-bottom: 18px !important;
    padding: 0 !important;
    float: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields .form-row:last-of-type {
    margin-bottom: 0 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(1) {
    width: 100% !important;
    display: block !important;
    order: 1 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(2) {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top !important;
    order: 2 !important;
    float: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(3) {
    width: 100% !important;
    display: block !important;
    order: 4 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(4) {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top !important;
    order: 3 !important;
    float: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields .form-row-first,
#wcsc-checkout-wrap .wcsc-payment-fields .form-row-last {
    float: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields .form-row-first {
    margin-right: 0 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields .form-row-wide {
    width: 100% !important;
    float: none !important
}

#wcsc-checkout-wrap .wcsc-payment-fields input.input-text,
#wcsc-checkout-wrap .wcsc-payment-fields input[type="text"],
#wcsc-checkout-wrap .wcsc-payment-fields input[type="tel"],
#wcsc-checkout-wrap .wcsc-payment-fields input[type="password"],
#wcsc-checkout-wrap .wcsc-payment-fields input[type="number"],
#wcsc-checkout-wrap .wcsc-payment-fields select {
    width: 100% !important;
    padding: 15px 16px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #2a2a2a !important;
    outline: none !important;
    transition: all .25s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04) !important;
    letter-spacing: .02em !important
}

#wcsc-checkout-wrap .wcsc-payment-fields input:focus,
#wcsc-checkout-wrap .wcsc-payment-fields select:focus {
    border-color: var(--wcsc-primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, .1), 0 1px 3px rgba(0, 0, 0, .04) !important;
    background: #fffefa !important
}

#wcsc-checkout-wrap .wcsc-payment-fields input::placeholder {
    color: #b5a99a !important;
    font-size: 14px !important;
    letter-spacing: 0 !important
}

#wcsc-checkout-wrap .wcsc-payment-fields select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B4513' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    cursor: pointer !important
}

.wcsc-payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.wcsc-payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden
}

.wcsc-payment-card.selected .wcsc-payment-icon {
    background: none
}

.wcsc-payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px
}

.wcsc-payment-label {
    font-size: 18px;
    font-weight: 600;
    color: #333
}

.wcsc-payment-sub {
    font-size: 13px;
    color: #999
}

.wcsc-payment-check {
    color: #ccc;
    flex-shrink: 0
}

.wcsc-payment-card.selected .wcsc-payment-check {
    color: var(--wcsc-primary)
}

/* ── 약관 ── */
.wcsc-terms {
    margin-bottom: 20px
}

.wcsc-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    color: #666;
    cursor: pointer
}

.wcsc-terms-label input {
    accent-color: var(--wcsc-primary);
    margin-top: 2px
}

.wcsc-terms-label a {
    color: var(--wcsc-primary);
    text-decoration: none
}

/* ── 하단 바 (step 3) ── */
.wcsc-step-nav-bottom {
    background: #faf8f5;
    border-radius: 14px;
    padding: 14px;
    border: 1.5px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px
}

.wcsc-step-nav-bottom .wcsc-btn-prev {
    flex-shrink: 0
}

.wcsc-step-nav-bottom .wcsc-btn-order {
    flex: 1;
    margin-left: 0;
    white-space: nowrap
}

.wcsc-bottom-total-val {
    font-weight: 800
}

/* ── 네비게이션 버튼 ── */
.wcsc-step-nav {
    display: flex;
    gap: 10px;
    margin-top: 28px
}

.wcsc-step-nav>div {
    flex: 1;
    display: flex
}

.wcsc-step-nav>div:empty {
    display: none
}

.wcsc-step-nav .wcsc-btn-next {
    flex: 1
}

.wcsc-btn-next,
.wcsc-btn-order {
    height: 56px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--wcsc-primary), var(--wcsc-primary-light));
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(139, 69, 19, .25);
    line-height: 1;
    box-sizing: border-box
}

.wcsc-btn-next:hover,
.wcsc-btn-order:hover {
    box-shadow: 0 6px 20px rgba(139, 69, 19, .35)
}

/* ── 네이버페이 버튼 ── */
.wcsc-btn-naver {
    display: flex;
    width: 100%;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    padding: 0;
    background: #00DE5A
}

.wcsc-btn-naver:hover {
    opacity: .85
}

.wcsc-btn-naver img {
    display: block;
    width: 100%;
    height: 56px;
    object-fit: contain
}

.wcsc-npay-m {
    display: none !important
}

@media (max-width: 768px) {
    .wcsc-npay-pc {
        display: none !important
    }

    .wcsc-npay-m {
        display: block !important
    }
}

.wcsc-btn-order {
    width: 100%;
    text-align: center;
    flex: 1;
    margin-left: 12px
}

.wcsc-btn-prev {
    height: 56px;
    padding: 0 24px;
    background: #fff;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    line-height: 1;
    box-sizing: border-box
}

.wcsc-btn-prev:hover {
    border-color: #bbb;
    color: #666;
    background: #fff
}

/* ── 에러 / 로딩 ── */
.wcsc-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #d4380d;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none
}

.wcsc-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.wcsc-loading.show {
    display: flex
}

.wcsc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--wcsc-primary);
    border-radius: 50%;
    animation: wcsc-spin .7s linear infinite
}

@keyframes wcsc-spin {
    to {
        transform: rotate(360deg)
    }
}

/* ── 모바일 ── */
@media(max-width:480px) {
    #wcsc-checkout-wrap {
        padding: 0 12px
    }

    .wcsc-step-label {
        display: none
    }

    .wcsc-product-card {
        padding: 14px 16px
    }

    .wcsc-variation-card {
        flex: 1 1 100%
    }

    .wcsc-btn-order {
        margin-left: 8px
    }

    .wcsc-form-card-body {
        padding: 14px 14px 16px
    }

    .wcsc-form-card-title {
        padding: 14px 14px 0
    }

    .separate-containers .inside-article {
        padding: 0 0 70px 0 !important
    }

    #wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(1),
    #wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(2),
    #wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(3),
    #wcsc-checkout-wrap .wcsc-payment-fields fieldset>p:nth-of-type(4) {
        width: 100% !important;
        display: block !important;
        order: unset !important
    }

    .wcsc-size-layout-compact .wcsc-vcard-check {
        display: none !important
    }
}