.wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block {
    padding-top: 0;
    max-width: 1400px;
    margin: 80px auto 150px;
    flex-direction: row;
    justify-content: space-between;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: 0;
    width: 65%;
}

.wc-block-components-sidebar {
    box-sizing: border-box;
    padding-left: 0;
    width: 30%;
}

#content .wp-block-woocommerce-checkout {
    padding-top: 0;
    max-width: 900px;
    margin: 0px auto 150px;
}


/* ===========================================
   주문 완료 페이지 스타일 (심플 버전)
   =========================================== */


/* 메인 컨테이너 */

.woocommerce-order {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}


/* 주문 완료 성공 메시지 */

.woocommerce-notice--success.woocommerce-thankyou-order-received {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    padding: 28px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
}


/* 주문 개요 정보 */

.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.woocommerce-order-overview li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.woocommerce-order-overview li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.woocommerce-order-overview li strong {
    display: block;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}


/* 결제 완료 메시지 - 제거됨 */


/* 섹션 공통 스타일 */

.woocommerce-order-details,
.woocommerce-customer-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 24px;
}


/* 섹션 제목 */

.woocommerce-order-details__title,
.woocommerce-column__title,
.pafw-payment-details-section h2 {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* 테이블 스타일 */

.woocommerce-table {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.woocommerce-table thead th {
    color: var(--color-white);
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    border: none;
    font-size: 14px;
}

.woocommerce-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.woocommerce-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.woocommerce-table tbody td {
    padding: 18px 20px;
    color: var(--color-white-alpha-90);
    border: none;
}

.woocommerce-table tbody td a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.woocommerce-table tbody td a:hover {
    opacity: 0.8;
}

.product-quantity {
    color: var(--color-white-alpha-80);
    font-weight: 500;
}


/* 테이블 푸터 (총계) */

.woocommerce-table tfoot th,
.woocommerce-table tfoot td {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-white-alpha-90);
}

.woocommerce-table tfoot th {
    font-weight: 500;
    text-align: left;
}

.woocommerce-table tfoot tr:last-child th,
.woocommerce-table tfoot tr:last-child td {
    background: rgba(255, 255, 255, 0.06);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-white);
}


/* 주문 동작 버튼 행 */

.woocommerce-table tfoot .order-actions--heading {
    background: rgba(255, 255, 255, 0.03);
}


/* 버튼 스타일 */

.woocommerce-button.button,
.order-actions-button,
.button.button-primary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.woocommerce-button.button:hover,
.order-actions-button:hover,
.button.button-primary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}


/* 영수증 확인 버튼 */

.pafw-payment-details a.button {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 24px;
    font-size: 13px;
}

.pafw-payment-details a.button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}


/* 다시 주문하기 버튼 */

.order-again {
    text-align: center;
    margin: 30px 0;
}

.order-again .button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 14px 40px;
    font-size: 15px;
}

.order-again .button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}


/* 결제 상세 정보 섹션 */

.pafw-payment-details-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 36px;
    margin-top: 24px;
}

.pafw-payment-details tbody td {
    font-size: 14px;
}


/* 주문자 정보 */

.woocommerce-customer-details address {
    color: var(--color-white-alpha-90);
    font-style: normal;
    line-height: 1.8;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    color: var(--color-white);
    font-weight: 500;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* 가격 표시 */

.woocommerce-Price-amount {
    color: var(--color-white);
    font-weight: 600;
}


/* 취소 사유 폼 */

.pafw-cancel-reason-form {
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
}

.pafw-cancel-reason-form select,
.pafw-cancel-reason-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 12px 16px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 12px;
    font-size: 14px;
}

.pafw-cancel-reason-form textarea {
    min-height: 100px;
    resize: vertical;
}

.pafw-cancel-order {
    background: #DC3545;
    width: 100%;
    margin-top: 12px;
    border: none;
}

.pafw-cancel-order:hover {
    background: #C82333;
}

.woocommerce ul.order_details::after,
.woocommerce ul.order_details::before {
    display: none;
}

.woocommerce ul.order_details li {
    margin: 0;
    padding: 15px;
    border: 0;
}

.woocommerce-notice--success.woocommerce-thankyou-order-received {
    background: transparent;
    padding: 0;
    border: 0;
    text-align: start;
    display: none;
}

.woocommerce-table tfoot tr:last-child th,
.woocommerce-table tfoot tr:last-child td {
    background: rgba(255, 255, 255, 0.06);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    font-size: 14px;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff;
    background-color: #292929;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.wc-block-components-product-badge {
    display: none !important;
}


/* 반응형 디자인 */

@media (max-width: 768px) {
    .woocommerce-order {
        margin: 30px auto;
        padding: 0 15px;
    }
    .woocommerce-notice--success {
        padding: 20px 24px;
        font-size: 16px;
    }
    .woocommerce-order-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .woocommerce-order-details,
    .woocommerce-customer-details,
    .pafw-payment-details-section {
        padding: 24px 18px;
    }
    .woocommerce-table thead {
        display: none;
    }
    .woocommerce-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 16px;
    }
    .woocommerce-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
    }
    .woocommerce-table tbody td:before {
        content: attr(class);
        display: block;
        font-weight: 600;
        color: var(--color-white);
        margin-bottom: 4px;
        text-transform: capitalize;
    }
    .woocommerce-table tfoot th,
    .woocommerce-table tfoot td {
        display: block;
        text-align: left;
    }
}


/* ===========================================
   빈 장바구니 페이지 스타일
   =========================================== */


/* 신제품 목록 숨기기 */

.wp-block-woocommerce-empty-cart-block .wc-block-grid.wp-block-product-new,
.wp-block-woocommerce-empty-cart-block .wp-block-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-product-new {
    display: none !important;
}


/* "New in store" 제목 숨기기 */

.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
    display: none !important;
}


/* 구분선 숨기기 */

.wp-block-woocommerce-empty-cart-block .wp-block-separator {
    display: none !important;
}


/* 빈 장바구니 컨테이너 스타일 */

.wp-block-woocommerce-empty-cart-block {
    max-width: 800px;
    margin: 80px auto 150px;
    padding: 60px 40px;
    text-align: center;
    background: transparent;
    border: 0;
    min-height: 60vh;
}


/* 빈 장바구니 제목 스타일 - 영어 텍스트 숨기고 한국어로 교체 */

.wc-block-cart__empty-cart__title {
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
    display: none !important;
}

.wc-block-cart__empty-cart__title::after {
    content: "장바구니가 비어있습니다!";
    font-size: 20px;
    display: block;
    color: var(--color-white);
    font-weight: 600;
    line-height: 1.4;
}


/* 아이콘이 있는 경우 스타일 */

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
    content: "🛒";
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
    line-height: 1;
}

.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=number],
.wc-block-components-form .wc-block-components-text-input input[type=password],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=text],
.wc-block-components-form .wc-block-components-text-input input[type=url],
.wc-block-components-text-input input[type=email],
.wc-block-components-text-input input[type=number],
.wc-block-components-text-input input[type=password],
.wc-block-components-text-input input[type=tel],
.wc-block-components-text-input input[type=text],
.wc-block-components-text-input input[type=url] {
    background-color: #f0f0f0;
    color: #333;
    border: 0;
    padding: 2em 1em .5em !important;
    height: 72px;
    font-size: 16px;
}

.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
    color: #333;
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill+label,
.wc-block-components-form .wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:-webkit-autofill+label,
.wc-block-components-text-input.is-active label {
    transform: unset;
    top: .5em;
    left: 1em;
}

.wc-block-components-form .wc-block-components-text-input input[type=email]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=number]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=password]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=text]:focus,
.wc-block-components-form .wc-block-components-text-input input[type=url]:focus,
.wc-block-components-text-input input[type=email]:focus,
.wc-block-components-text-input input[type=number]:focus,
.wc-block-components-text-input input[type=password]:focus,
.wc-block-components-text-input input[type=tel]:focus,
.wc-block-components-text-input input[type=text]:focus,
.wc-block-components-text-input input[type=url]:focus {
    background-color: #f0f0f0;
    color: #333;
    border: 0;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    border-radius: 4px;
    box-shadow: none;
    border: 0;
    background-color: #f0f0f0;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__option .wc-block-components-radio-control__input {
    display: none;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__option {
    padding: 1em 1em;
}


/* 반응형 디자인 */

@media (max-width: 768px) {
    .wp-block-woocommerce-empty-cart-block {
        margin: 40px 20px 80px;
        padding: 40px 24px;
    }
    .wc-block-cart__empty-cart__title::after {
        font-size: 22px;
    }
    .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
        font-size: 48px;
        margin-bottom: 16px;
    }
    .wp-block-woocommerce-cart {
        padding: 0 20px;
    }
}


/* ===========================================
   체크된 결제 수단에 체크 표시 추가
   =========================================== */

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    position: relative;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted .wc-block-components-payment-method-label::after {
    content: "✓";
    position: absolute;
    top: 15px;
    right: 13px;
    width: 22px;
    height: 22px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: block;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    animation: checkmark-appear 0.3s ease;
    pointer-events: none;
}

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body.woocommerce-checkout {
    background-color: #fdfdfd;
    color: #333;
}

.wc-block-components-title.wc-block-components-title {
    font-size: 24px;
}

.wc-block-components-radio-control__option {
    font-weight: 600;
}

.wc-block-components-sidebar-layout {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto 16px;
    position: relative;
    flex-direction: column-reverse;
    gap: 30px;
}

.wc-block-checkout__sidebar.is-sticky {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
}

body.fastweb-co-no-shipping .wc-block-checkout__main {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.wp-block-woocommerce-checkout-order-summary-block {
    border: 0;
    border-radius: 0;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
    flex-grow: 1;
    font-weight: 700;
    margin: 0;
    font-size: 24px;
}

.wc-block-checkout__sidebar .wc-block-components-product-name {
    font-size: 16px;
    font-weight: 500;
}

.wc-block-components-radio-control--highlight-checked:after,
.wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option:after {
    border: 0 !important;
    display: none;
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    color: #fff;
}

@media (max-width: 699px) {
    .wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
        display: none !important;
    }
    .wc-block-components-sidebar-layout {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }
    .wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block {
        margin: 30px auto 150px;
        padding: 0;
    }
    .wc-block-components-sidebar-layout .wc-block-components-main {
        width: 100%;
    }
    .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        width: 100%;
    }
}