/*
Theme Name: Concierly Checkout
Theme URI: https://concierly.ai
Version: 6.0
Author: Concierly
*/

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { margin-top: 0 !important; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}
a { color: #6366f1; }
#wpadminbar, [class*="coming-soon"] { display: none !important; }

/* ── Header ── */
.concierly-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.concierly-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.concierly-logo {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.concierly-logo span { color: #94a3b8; }
.concierly-back { font-size: 13px; color: #94a3b8; text-decoration: none; }

/* ── Layout ── */
.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ── Hide return to cart ── */
.wc-block-components-checkout-return-to-cart-button { display: none !important; }

/* ── Spacing between form fields ── */
.wc-block-components-address-form .wc-block-components-text-input,
.wc-block-components-address-form .wc-block-components-combobox {
    margin-bottom: 12px !important;
}

/* ── Place order button brand color ── */
.wc-block-components-checkout-place-order-button,
.wp-element-button {
    width: 100% !important;
    background: #6366f1 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    min-height: 50px !important;
}
.wc-block-components-checkout-place-order-button:hover {
    background: #4f46e5 !important;
}
.wc-block-checkout__actions { text-align: center !important; }
.wc-block-checkout__actions_row { display: block !important; }

/* ── Footer ── */
.concierly-footer {
    text-align: center;
    padding: 24px 20px;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}
.concierly-footer a { color: #6366f1; text-decoration: none; }

/* ── Thank You / Order Received ── */
.concierly-thankyou {
    max-width: 680px;
    margin: 0 auto;
}
.concierly-thankyou-success,
.concierly-thankyou-failed {
    text-align: center;
    padding: 40px 20px 24px;
}
.concierly-thankyou-icon {
    margin-bottom: 16px;
}
.concierly-thankyou h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.concierly-thankyou-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}
.concierly-order-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.concierly-order-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.concierly-order-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.concierly-order-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
}
.concierly-order-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}
.concierly-order-items {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.concierly-order-items h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 16px;
}
.concierly-order-items table {
    width: 100%;
    border-collapse: collapse;
}
.concierly-order-items th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}
.concierly-order-items td {
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.concierly-order-items tfoot td {
    border-bottom: none;
    font-size: 14px;
}
.concierly-order-items th:last-child,
.concierly-order-items td:last-child {
    text-align: right;
}
.concierly-order-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.concierly-address-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.concierly-address-block h3 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
}
.concierly-address-block address {
    font-style: normal;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.concierly-thankyou-actions {
    text-align: center;
    padding: 24px 0;
}
.concierly-btn {
    display: inline-block;
    background: #6366f1;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.concierly-btn:hover { background: #4f46e5; }

/* Hide default WC notices on thankyou — we have our own */
.concierly-thankyou .woocommerce-notice,
.concierly-thankyou .woocommerce-info,
.concierly-thankyou .woocommerce-form-login { display: none !important; }

@media (max-width: 640px) {
    .concierly-order-meta { grid-template-columns: 1fr; }
    .concierly-order-addresses { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   DARK MODE
   Minimal overrides — let WC handle layout
   ═══════════════════════════════════════════ */
html.concierly-dark body { background: #0f172a !important; color: #e2e8f0 !important; }
html.concierly-dark .concierly-header { background: #1e293b !important; border-color: #334155 !important; }
html.concierly-dark .concierly-logo { color: #fff !important; }
html.concierly-dark .concierly-footer { border-color: #334155 !important; }

/* WC blocks dark */
html.concierly-dark .wc-block-components-checkout-step__title,
html.concierly-dark .wc-block-components-title { color: #f1f5f9 !important; }

html.concierly-dark .wc-block-components-text-input input,
html.concierly-dark .wc-block-components-combobox input,
html.concierly-dark .wc-block-components-textarea textarea {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
html.concierly-dark .wc-block-components-text-input label,
html.concierly-dark .wc-block-components-combobox label { color: #94a3b8 !important; }

html.concierly-dark .wc-block-components-text-input input:focus,
html.concierly-dark .wc-block-components-combobox input:focus {
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 2px rgba(167,139,250,0.2) !important;
}

html.concierly-dark p, html.concierly-dark span, html.concierly-dark label,
html.concierly-dark td, html.concierly-dark th, html.concierly-dark li { color: #e2e8f0 !important; }

html.concierly-dark .wc-block-components-checkout-step { border-color: #334155 !important; }
html.concierly-dark .wc-block-components-totals-wrapper { border-color: #334155 !important; }
html.concierly-dark .wc-block-components-order-summary { border-color: #334155 !important; }

html.concierly-dark .wc-block-components-checkout-place-order-button { background: #a78bfa !important; }
html.concierly-dark .wc-block-components-checkout-place-order-button:hover { background: #8b5cf6 !important; }

html.concierly-dark .wc-block-components-notice-banner.is-error { background: #450a0a !important; color: #fca5a5 !important; }

html.concierly-dark .wc-block-components-radio-control__option { border-color: #334155 !important; }
html.concierly-dark .wc-block-components-radio-control__label { color: #e2e8f0 !important; }

html.concierly-dark a { color: #a78bfa !important; }

/* Dark mode — thankyou page */
html.concierly-dark .concierly-thankyou h2 { color: #f1f5f9 !important; }
html.concierly-dark .concierly-order-summary,
html.concierly-dark .concierly-order-items,
html.concierly-dark .concierly-address-block {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html.concierly-dark .concierly-order-meta-value { color: #f1f5f9 !important; }
html.concierly-dark .concierly-order-items h3,
html.concierly-dark .concierly-address-block h3 { color: #f1f5f9 !important; }
html.concierly-dark .concierly-order-items th { color: #94a3b8 !important; border-color: #334155 !important; }
html.concierly-dark .concierly-order-items td { color: #e2e8f0 !important; border-color: #1e293b !important; }
html.concierly-dark .concierly-btn { background: #a78bfa !important; }
html.concierly-dark .concierly-btn:hover { background: #8b5cf6 !important; }

/* Dark mode — dropdowns/combobox */
html.concierly-dark select,
html.concierly-dark .wc-block-components-combobox .wc-block-components-combobox-control input,
html.concierly-dark .wc-block-components-combobox .components-form-token-field__input,
body.concierly-dark select,
body.concierly-dark .wc-block-components-combobox .wc-block-components-combobox-control input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

/* Combobox dropdown list */
html.concierly-dark .components-popover__content,
html.concierly-dark .wc-block-components-combobox__popover .components-popover__content,
body.concierly-dark .components-popover__content {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
html.concierly-dark .wc-block-components-combobox__option,
html.concierly-dark .components-form-token-field__suggestion,
body.concierly-dark .wc-block-components-combobox__option,
body.concierly-dark .components-form-token-field__suggestion {
    color: #e2e8f0 !important;
    background: #1e293b !important;
}
html.concierly-dark .wc-block-components-combobox__option:hover,
html.concierly-dark .wc-block-components-combobox__option[aria-selected="true"],
html.concierly-dark .components-form-token-field__suggestion.is-selected,
body.concierly-dark .wc-block-components-combobox__option:hover,
body.concierly-dark .components-form-token-field__suggestion.is-selected {
    background: #a78bfa !important;
    color: #fff !important;
}
