/* ============================================
   WooCommerce Blocks Override
   Loaded AFTER wc-blocks-style via dependency
   ============================================ */

/* === BUTTONS === */
.wc-block-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.wc-block-cart .wc-block-components-button {
    background: #55a668;
    color: #393e41;
    border: none;
    border-radius: 6px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    text-align: center;
    box-shadow: none;
    text-decoration: none;
    width: 100%;
}

.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-cart__submit-button:focus,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:focus {
    background: #478f58;
    color: #393e41;
}

/* Coupon button */
.wc-block-components-totals-coupon__button {
    background: #393e41;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

.wc-block-components-totals-coupon__button:hover {
    background: #4d5356;
    color: #fff;
}

/* === HEADINGS / TITLES === */
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-panel__button {
    font-family: 'Kanit', sans-serif;
    color: #393e41;
    font-weight: 600;
}

.wc-block-checkout .wc-block-components-checkout-step__title {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #393e41;
}

/* === TOTALS === */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 700;
    color: #393e41;
    font-size: 20px;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-weight: 700;
    color: #393e41;
    font-size: 16px;
}

.wc-block-components-totals-wrapper {
    border-color: #e5e5e5;
}

.wc-block-components-totals-item__label {
    font-size: 14px;
    color: #333;
}

.wc-block-components-totals-item__value {
    font-weight: 600;
    color: #393e41;
}

/* === FORM FIELDS === */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout textarea,
.wc-block-checkout select {
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout textarea:focus,
.wc-block-checkout select:focus {
    border-color: #55a668;
    box-shadow: 0 0 0 3px rgba(221, 172, 74, 0.1);
    outline: none;
}

.wc-block-checkout .wc-block-components-text-input label {
    color: #666;
    font-size: 13px;
}

/* === CHECKBOXES & RADIOS — only colors, don't touch layout === */
.wc-block-checkout input[type="checkbox"],
.wc-block-components-radio-control input[type="radio"] {
    accent-color: #55a668;
}

.wc-block-components-radio-control__label {
    font-weight: 500;
    font-size: 14px;
    color: #393e41;
}

.wc-block-components-radio-control__secondary-label {
    font-weight: 600;
    color: #393e41;
}

.wc-block-components-radio-control__description {
    font-size: 12px;
    color: #666;
}

/* === ORDER SUMMARY === */
.wc-block-checkout .wc-block-components-order-summary-item__image img {
    border-radius: 6px;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-weight: 600;
    font-size: 14px;
    color: #393e41;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    font-size: 12px;
    color: #666;
}

/* Hide ONLY the short description text, keep variation/WAPF data */
.wc-block-components-product-metadata__description {
    display: none;
}

/* === PAYMENT METHODS === */
.wc-block-components-payment-method-label img {
    max-height: 24px;
    vertical-align: middle;
}

/* === MISC === */
.wc-block-components-checkout-return-to-cart-button {
    color: #666;
    font-size: 14px;
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: #55a668;
}

.wc-block-components-notice-banner {
    border-radius: 6px;
    font-size: 14px;
}

/* Coupon input */
.wc-block-components-totals-coupon__input .wc-block-components-text-input input {
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
}

.wc-block-components-totals-coupon__input .wc-block-components-text-input input:focus {
    border-color: #55a668;
    box-shadow: 0 0 0 3px rgba(221, 172, 74, 0.1);
}
EOF'
/* Hide individual price on checkout order summary */
.wc-block-components-order-summary-item__individual-price {
    display: none;
}

.wc-block-components-order-summary-item__individual-prices {
    display: none;
}

/* ============================================
   Thank You / Order Received Page
   ============================================ */
.curtainshop-thankyou {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.curtainshop-thankyou__success,
.curtainshop-thankyou__failed {
    text-align: center;
    margin-bottom: 32px;
}

.curtainshop-thankyou__icon {
    margin-bottom: 16px;
}

.curtainshop-thankyou__title {
    font-family: 'Kanit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #393e41;
    margin-bottom: 8px;
}

.curtainshop-thankyou__subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* Order details card */
.curtainshop-thankyou__details {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
}

.curtainshop-thankyou__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.curtainshop-thankyou__detail:last-child {
    border-bottom: none;
}

.curtainshop-thankyou__label {
    font-size: 14px;
    color: #666;
}

.curtainshop-thankyou__value {
    font-size: 14px;
    font-weight: 600;
    color: #393e41;
}

.curtainshop-thankyou__value--total {
    font-size: 18px;
    font-weight: 700;
}

/* Actions */
.curtainshop-thankyou__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Failed state */
.curtainshop-thankyou__failed p {
    color: #666;
    margin-bottom: 20px;
}

@media(max-width: 599px) {
    .curtainshop-thankyou {
        padding: 24px 0 40px;
    }

    .curtainshop-thankyou__details {
        padding: 16px 20px;
    }

    .curtainshop-thankyou__actions {
        flex-direction: column;
    }

    .curtainshop-thankyou__actions .btn {
        width: 100%;
    }
}
