/* Checkout Page - Clean Shopify-style Override */
:root {
    --ck-bg: #FFFFFF;
    --ck-white: #FFFFFF;
    --ck-sidebar-bg: #FAFAFA;
    --ck-gold: #B8924A;
    --ck-gold-dim: #A89070;
    --ck-text: #1A1A1A;
    --ck-muted: #707070;
    --ck-border: #E0E0E0;
    --ck-border-light: #EBEBEB;
}

/* Page background - clean white */
.woocommerce-checkout, .wc-block-checkout {
    background: var(--ck-bg) !important;
}

/* Hide page title */
.woocommerce-checkout .entry-title,
.woocommerce-checkout .wp-block-post-title,
.page-title,
.woocommerce-checkout h1 {
    display: none !important;
}

/* Checkout blocks container */
.wp-block-woocommerce-checkout {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Sidebar layout - the real flex container */
.wc-block-components-sidebar-layout {
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    flex: 1 1 auto !important;
    padding: 32px 48px 32px 32px !important;
    border-right: 1px solid var(--ck-border-light) !important;
    max-width: 600px !important;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex: 0 0 380px !important;
    width: 380px !important;
    background: var(--ck-sidebar-bg) !important;
    padding: 40px 40px 40px 32px !important;
    border-left: 1px solid var(--ck-border-light) !important;
}

/* Section headings - bold like Shopify */
.wc-block-components-checkout-step__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: var(--ck-text) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Remove uppercase label overrides - use normal case */
.wc-block-components-checkout-step__heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--ck-text) !important;
    font-weight: 600 !important;
}

/* Form inputs - clean rounded borders */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout select,
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .components-combobox-control input {
    background: var(--ck-white) !important;
    border: 1px solid var(--ck-border) !important;
    border-radius: 5px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    color: var(--ck-text) !important;
    height: 42px !important;
    padding: 8px 12px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.wc-block-components-text-input input:focus,
.wc-block-checkout input:focus {
    border-color: #1A1A1A !important;
    box-shadow: 0 0 0 1px #1A1A1A !important;
    outline: none !important;
}

/* Labels */
.wc-block-components-text-input label,
.wc-block-components-combobox .components-base-control__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    color: var(--ck-muted) !important;
}

/* Order summary sidebar - NO card border, clean like Shopify */
.wc-block-components-order-summary,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout-totals-block,
.wc-block-components-sidebar-layout .wc-block-components-sidebar,
.wc-block-components-sidebar-layout .wc-block-components-sidebar > div,
.wc-block-checkout__sidebar > div {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hide "Order summary" title */
.wc-block-components-checkout-order-summary__title,
.wc-block-checkout__sidebar .wc-block-components-title,
.wp-block-woocommerce-checkout-totals-block .wc-block-components-title,
.wc-block-components-order-summary .wc-block-components-panel__button,
.wc-block-components-order-summary > .wc-block-components-panel > button,
.wc-block-checkout__sidebar h2,
.wc-block-components-order-summary > button,
.wc-block-components-sidebar h2.wc-block-components-title {
    display: none !important;
}

/* Order summary item - give description more room */
.wc-block-components-order-summary-item__description {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    display: block !important;
}

/* Product names in summary */
.wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--ck-text) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

/* Hide long product description in summary */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
    display: none !important;
}

/* Product image - rounded like Shopify with quantity badge */
.wc-block-components-order-summary-item__image {
    border-radius: 8px !important;
    overflow: visible !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    position: relative !important;
    border: 1px solid var(--ck-border-light) !important;
}

.wc-block-components-order-summary-item__image img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* Quantity badge - top right corner like Shopify */
.wc-block-components-order-summary-item__quantity {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: var(--ck-muted) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1 !important;
}

/* Product price in summary */
.wc-block-components-order-summary-item__total-price {
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.wc-block-components-order-summary-item__individual-price {
    font-size: 12px !important;
    color: var(--ck-muted) !important;
}

/* Totals - clean Shopify style */
.wc-block-components-totals-item .wc-block-components-totals-item__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    color: var(--ck-text) !important;
    font-weight: 400 !important;
}

.wc-block-components-totals-item .wc-block-components-totals-item__value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    color: var(--ck-text) !important;
}

/* Total row - bold like Shopify */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ck-text) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--ck-text) !important;
}

/* Dividers - light */
.wc-block-components-totals-wrapper::before,
.wc-block-components-totals-wrapper::after {
    border-color: var(--ck-border-light) !important;
}

/* Place Order button - gold accent */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions button {
    background: var(--ck-gold) !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    color: var(--ck-white) !important;
    height: 50px !important;
    transition: background 0.2s !important;
    cursor: pointer !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions button:hover {
    background: var(--ck-gold-dim) !important;
}

/* Coupon field - inline like Shopify */
.wc-block-components-totals-coupon__input .wc-block-components-text-input input {
    background: var(--ck-white) !important;
    border: 1px solid var(--ck-border) !important;
    border-radius: 6px !important;
}

.wc-block-components-totals-coupon__button {
    background: var(--ck-border) !important;
    color: var(--ck-text) !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.wc-block-components-totals-coupon__button:hover {
    background: var(--ck-border-light) !important;
}

/* Payment method options - clean border card */
.wc-block-checkout__payment-method .wc-block-components-radio-control__option {
    border: 1px solid var(--ck-border) !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    padding-left: 40px !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

/* Radio buttons */
.wc-block-components-radio-control__input {
    border-color: var(--ck-border) !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.wc-block-components-radio-control__input:checked {
    background: var(--ck-text) !important;
    border-color: var(--ck-text) !important;
}

/* Checkbox */
.wc-block-checkout__create-account .wc-block-components-checkbox__input:checked {
    background: var(--ck-text) !important;
    border-color: var(--ck-text) !important;
}

/* Payment method label */
.wc-block-components-payment-method-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.wc-block-components-payment-method-icons {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
}

.wc-block-components-payment-method-icon {
    height: 24px !important;
    width: auto !important;
    border-radius: 3px !important;
}

/* Trust badges */
.wc-block-checkout__actions::after {
    content: "All transactions are secure and encrypted.";
    display: block;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: var(--ck-muted);
    margin-top: 12px;
}

/* Links */
.wc-block-checkout a {
    color: var(--ck-text) !important;
    text-decoration: underline !important;
}

.wc-block-checkout a:hover {
    color: var(--ck-muted) !important;
}

/* Error messages */
.wc-block-components-validation-error {
    color: #C44D56 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
}

/* Notice banners */
.wc-block-components-notice-banner {
    border-radius: 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Express checkout section */
.wc-block-checkout__payment-method .wc-block-components-express-payment {
    border: none !important;
}

/* Express checkout PayPal button - constrain width like Shopify */
.wc-block-components-express-payment .wc-block-components-express-payment__event-buttons {
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* Reduce spacing between checkout steps */
.wc-block-components-checkout-step {
    margin-bottom: 16px !important;
    padding-bottom: 0 !important;
}

/* Section titles - slightly smaller like Shopify */
.wc-block-components-checkout-step__heading h2,
.wc-block-components-checkout-step__title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
}

/* Place order button - smaller height */
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions button {
    height: 46px !important;
    font-size: 13px !important;
}
