/* ================================================================
   Horeka Custom Checkout Styles
   Applies only on .woocommerce-checkout body (is_checkout())
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
.hkco-form,
.hkco-trust-bar,
.hkco-steps-wrap,
.hkco-footer-trust,
.hkco-before-form,
.hkco-modal-overlay,
.hkco-mob-hdr,
.hkco-mob-sticky,
.hkco-mob-drawer {
    --hkco-orange:    #F5A623;
    --hkco-orange-dk: #E09512;
    --hkco-green:     #27AE60;
    --hkco-text:      #1A1A2E;
    --hkco-sub:       #6B7280;
    --hkco-border:    #E5E7EB;
    --hkco-bg:        #F8F9FA;
    --hkco-white:     #FFFFFF;
    --hkco-radius:    10px;
    --hkco-shadow:    0 1px 4px rgba(0,0,0,.06);
}

/* ── Kill every gap that would push the Horeka header away from the top ─ */

/* 1. Admin bar: WP adds margin-top:32px (or 46px on mobile) to <html>.
      Removing it means the admin bar overlaps content, but on the custom
      checkout the fixed-position Horeka header still looks correct. */
html.woocommerce-checkout,
body.woocommerce-checkout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. xStore page-heading / breadcrumbs — not needed on checkout */
.woocommerce-checkout .page-heading,
.woocommerce-checkout .page-heading * {
    display: none !important;
}

/* 3. xStore sometimes adds a top margin via .et-main-header placeholder */
.woocommerce-checkout #page,
.woocommerce-checkout #main,
.woocommerce-checkout #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── Page wrapper spacing ───────────────────────────────────── */
.woocommerce-checkout .entry-content,
.woocommerce-checkout .content-page,
.woocommerce-checkout #content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ── Full-width override: X-Store uses col-md-9 + sidebar ───── */
/* Expand the content column to 100% and hide the unused sidebar  */
.woocommerce-checkout .content[class*="col-md"],
.woocommerce-checkout .content[class*="col-lg"],
.woocommerce-checkout .content[class*="col-sm"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.woocommerce-checkout aside.widget-area,
.woocommerce-checkout .sidebar,
.woocommerce-checkout [class*="sidebar"][class*="col-"] {
    display: none !important;
}
/* Remove container gutter so the quick-OS header spans edge-to-edge */
.woocommerce-checkout .container.content-page {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}
.woocommerce-checkout .container.content-page > div > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ── Trust Bar ──────────────────────────────────────────────── */
.hkco-trust-bar {
    background: var(--hkco-white);
    border-bottom: 1px solid var(--hkco-border);
    padding: 10px 0;
    font-size: 12.5px;
    color: var(--hkco-sub);
}
.hkco-trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.hkco-trust-items {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hkco-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.hkco-ti-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--hkco-sub);
}
.hkco-trust-sep {
    color: var(--hkco-border);
}
.hkco-secure {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--hkco-text);
    white-space: nowrap;
}
.hkco-secure svg {
    width: 14px;
    height: 14px;
}

/* ── Step Progress ──────────────────────────────────────────── */
.hkco-steps-wrap {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 28px;
}
.hkco-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.hkco-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hkco-sub);
}
.hkco-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hkco-border);
    color: var(--hkco-sub);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.hkco-step.active .hkco-step-circle {
    background: var(--hkco-orange);
    color: #fff;
}
.hkco-step.active .hkco-step-label {
    color: var(--hkco-text);
    font-weight: 600;
}
.hkco-step.done .hkco-step-circle {
    background: var(--hkco-green);
    color: #fff;
}
.hkco-step.done .hkco-step-label {
    color: var(--hkco-text);
    font-weight: 500;
}
.hkco-step-label {
    font-size: 14px;
    white-space: nowrap;
    transition: color .2s, font-weight .2s;
}
.hkco-step-line {
    flex: 1;
    height: 2px;
    background: var(--hkco-border);
    margin: 0 14px;
    min-width: 40px;
    transition: background .3s;
}
.hkco-step-line.done {
    background: var(--hkco-green);
}

/* ── Before-form (coupon/login toggles) ─────────────────────── */
.hkco-before-form {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 28px;
}
.hkco-before-form .woocommerce-info {
    font-size: 13px;
    margin-bottom: 6px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.hkco-form {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 28px;
}
.hkco-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* ── Card ───────────────────────────────────────────────────── */
.hkco-card {
    background: var(--hkco-white);
    border: 1px solid var(--hkco-border);
    border-radius: var(--hkco-radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--hkco-shadow);
}
.hkco-card:last-child { margin-bottom: 0; }

.hkco-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hkco-text);
    margin: 0 0 4px;
    padding: 0;
    border: none;
    text-transform: none;
}
.hkco-card-sub {
    font-size: 13px;
    color: var(--hkco-sub);
    margin: 0 0 20px;
}

/* ── Form Fields ────────────────────────────────────────────── */
.hkco-fields { display: flex; flex-direction: column; gap: 14px; }

.hkco-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.hkco-row-mt { margin-top: 14px; }

.hkco-field-wrap { display: flex; flex-direction: column; gap: 5px; }
.hkco-field-full { grid-column: 1 / -1; }

.hkco-field-wrap label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--hkco-sub);
    margin: 0;
}
.hkco-field-wrap label abbr {
    text-decoration: none;
    color: #E53935;
    margin-left: 2px;
}
.hkco-optional {
    font-weight: 400;
    color: #9CA3AF;
}

.hkco-input,
input.hkco-input,
select.hkco-input,
textarea.hkco-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--hkco-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--hkco-text);
    background: var(--hkco-white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.hkco-input::placeholder { color: #C4C9D4; }
.hkco-input:focus {
    border-color: var(--hkco-orange);
    box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
select.hkco-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

/* ── Address Card (saved address) ───────────────────────────── */
.hkco-addr-card {
    border: 1.5px solid var(--hkco-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color .2s;
    cursor: pointer;
}
.hkco-addr-card.selected {
    border-color: var(--hkco-orange);
    background: #FFFBF3;
}
.hkco-addr-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hkco-addr-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hkco-radio-sel {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--hkco-orange);
    position: relative;
    flex-shrink: 0;
}
.hkco-addr-card.selected .hkco-radio-sel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hkco-orange);
}
.hkco-addr-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hkco-text);
}
.hkco-badge-rec {
    background: #FFF3E0;
    color: #E65100;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.hkco-edit-btn {
    background: none;
    border: none;
    color: #2563EB;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.hkco-addr-text {
    font-size: 13px;
    color: var(--hkco-sub);
    line-height: 1.5;
    padding-left: 24px;
}
.hkco-add-new-addr {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed #CBD5E1;
    border-radius: 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #2563EB;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.hkco-add-new-addr:hover {
    border-color: #2563EB;
    background: #EFF6FF;
}
.hkco-plus { font-size: 18px; line-height: 1; }

/* ── Address Form + Map ─────────────────────────────────────── */
.hkco-addr-form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}
.hkco-addr-form-fields { display: flex; flex-direction: column; }
.hkco-map-col { position: relative; }
.hkco-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 1px solid var(--hkco-border);
    overflow: hidden;
    background: #e5e3df;
}

/* ── ETA Banner ─────────────────────────────────────────────── */
.hkco-eta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFBF0;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 18px;
}
.hkco-eta-icon { width: 22px; height: 22px; flex-shrink: 0; }
.hkco-eta-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hkco-eta-body strong { font-size: 13px; color: var(--hkco-text); }
.hkco-eta-body span  { font-size: 12px; color: var(--hkco-sub); }
.hkco-eta-link {
    font-size: 12.5px;
    color: #2563EB;
    text-decoration: none;
    white-space: nowrap;
}
.hkco-eta-link:hover { text-decoration: underline; }

/* ── RIGHT: Order Summary Card ──────────────────────────────── */
.hkco-order-card {
    position: sticky;
    top: 20px;
    padding: 0;
    overflow: hidden;
}

.hkco-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--hkco-border);
}
.hkco-order-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hkco-text);
}
.hkco-order-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hkco-item-count {
    font-size: 13px;
    color: var(--hkco-sub);
}
.hkco-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--hkco-sub);
}
.hkco-chevron {
    width: 18px;
    height: 18px;
    transition: transform .25s;
}
.hkco-collapse-btn.collapsed .hkco-chevron {
    transform: rotate(180deg);
}

/* ── Order Review Table (WooCommerce) ───────────────────────── */
.hkco-order-card .woocommerce-checkout-review-order {
    padding: 0;
}
.hkco-order-card .woocommerce-checkout-review-order-table-wrapper {
    padding: 16px 20px 0;
}
.hkco-order-card .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.hkco-order-card .woocommerce-checkout-review-order-table thead { display: none; }

/* ── Review Table (custom div layout) ─────────────────────────── */
.hkco-order-card .hkco-review-table {
    display: block;
    width: 100%;
    font-size: 13.5px;
}

/* Items list */
.hkco-review-items {
    padding: 0 24px;
}
.hkco-review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hkco-border);
    transition: opacity .2s;
}
.hkco-review-item.hkco-loading {
    opacity: .4;
    pointer-events: none;
}

/* Product image */
.hkco-ri-img {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hkco-border);
    background: #f9f9f9;
}
.hkco-ri-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Details body */
.hkco-ri-body {
    flex: 1;
    min-width: 0;
}
.hkco-ri-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--hkco-text);
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hkco-ri-unit-price {
    font-size: 12px;
    color: var(--hkco-sub);
    margin-bottom: 8px;
}

/* Actions: qty ctrl + remove */
.hkco-ri-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hkco-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--hkco-border);
    border-radius: 8px;
    overflow: hidden;
    height: 28px;
}
.hkco-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    color: var(--hkco-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    padding: 0;
}
.hkco-qty-btn:hover { background: var(--hkco-orange); color: #fff; }
.hkco-qty-val {
    min-width: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--hkco-text);
    border-left: 1.5px solid var(--hkco-border);
    border-right: 1.5px solid var(--hkco-border);
    line-height: 28px;
    flex-shrink: 0;
    padding: 0 4px;
}
.hkco-remove-item {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    color: #aaa;
    font-size: 11.5px;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
    white-space: nowrap;
}
.hkco-remove-item:hover {
    color: #e53e3e !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Item subtotal price */
.hkco-ri-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--hkco-text);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

/* ── Totals table ───────────────────────────────────────────── */
.hkco-totals-table {
    width: 100%;
    border-collapse: collapse;
}
.hkco-totals-table tbody tr {
    border-bottom: 1px solid var(--hkco-border);
}
.hkco-totals-table tbody tr:last-child {
    border-bottom: none;
}
.hkco-totals-table th,
.hkco-totals-table td {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    font-size: 13.5px;
    color: var(--hkco-text);
    vertical-align: middle;
    line-height: 1.4;
}
.hkco-totals-table th {
    padding-left: 24px !important;
    padding-right: 8px !important;
    font-weight: 500;
    text-align: left !important;
    white-space: nowrap;
    width: 1%;
}
.hkco-totals-table td {
    padding-left: 8px !important;
    padding-right: 24px !important;
    text-align: right !important;
    font-weight: 500;
}

/* Strip any list/UL styles WooCommerce injects inside shipping <td> */
.hkco-totals-table td ul,
.hkco-totals-table td ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    font-size: inherit !important;
    color: inherit !important;
}
/* Hide WC's "Ship to …" destination note */
.hkco-order-card .woocommerce-shipping-destination,
.hkco-totals-table .woocommerce-shipping-destination { display: none !important; }

/* Delivery FREE / Unlocked label */
.hkco-free-label {
    color: var(--hkco-green) !important;
    font-weight: 700 !important;
}
/* Small helper note after the free amount (e.g. "on 1st Order") */
.hkco-delivery-note {
    font-size: 11px;
    font-weight: 500;
    color: var(--hkco-green);
    opacity: 0.85;
    vertical-align: middle;
}

/* Order Total row */
.hkco-totals-table .order-total th,
.hkco-totals-table .order-total td {
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--hkco-text) !important;
    border-top: 1px solid var(--hkco-border);
}

/* Savings Banner */
.hkco-savings-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F0FDF4;
    border-top: 1px solid #BBF7D0;
    padding: 12px 24px;
    font-size: 13px;
    color: #166534;
    font-weight: 500;
}
.hkco-savings-banner .hkco-savings-icon { font-size: 16px; }

/* ── Payment Options ────────────────────────────────────────── */

/* "Payment Options" heading — injected via hook */
.hkco-payment-header {
    padding: 16px 24px 4px;
    border-top: 1px solid var(--hkco-border);
}
.hkco-payment-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hkco-text);
    margin: 0 0 2px;
}
.hkco-payment-header p {
    font-size: 12.5px;
    color: var(--hkco-sub);
    margin: 0;
}

/* WooCommerce #payment container */
.hkco-order-card #payment {
    border-top: none !important;
    padding: 8px 24px 24px !important;
}

/* Payment method list */
.hkco-order-card #payment .payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each method: grid layout — radio | row1(label)
                              blank | row2(description)

   `> li`, never a descendant `li`: a payment box can contain its own list, and
   this grid turns anything it matches into a one-word-per-line payment tile. */
.hkco-order-card #payment .payment_methods > li {
    border: 1.5px solid var(--hkco-border);
    border-radius: 10px;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: 0 !important;
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
    row-gap: 3px;
    align-items: start;
}
.hkco-order-card #payment .payment_methods > li:has(input:checked),
.hkco-order-card #payment .payment_methods > li.active-payment {
    border-color: var(--hkco-orange);
    background: #FFFBF3;
}

/* Radio: column 1 row 1, vertically centred with the label text */
.hkco-order-card #payment .payment_methods > li input[type="radio"] {
    grid-column: 1;
    grid-row: 1;
    width: 17px;
    height: 17px;
    margin: 2px 0 0 !important;
    accent-color: var(--hkco-orange);
    flex-shrink: 0;
    cursor: pointer;
    float: none !important;
    display: block !important;
}

/* Label: column 2 row 1 — flex row: name + badge + spacer + icon/logo */
.hkco-order-card #payment .payment_methods > li label {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--hkco-text);
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    line-height: 1.3;
}

/* Payment logo images (e.g. Cashfree) — pushed to right edge */
.hkco-order-card #payment .payment_methods label img {
    max-height: 24px;
    width: auto;
    max-width: 110px;
    margin: 0 0 0 auto !important;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Description: column 2 row 2 — shown only for the selected method.

   Four methods each showing a description, a delivery promise, a perk list and
   (for UPI on Delivery) three numbered steps is a wall of text nobody reads and
   a list you have to scroll to compare. Collapsed, the four options fit on one
   screen and can actually be weighed against each other; the detail appears for
   the one being considered.

   Both selectors are needed: :has() covers the instant before the change event
   fires, .active-payment covers browsers without :has(). The !important beats
   WooCommerce's own inline slideUp/slideDown, which means no animation but a
   state that is always right — the trade this file already made in the other
   direction. */
.hkco-order-card #payment .payment_box {
    grid-column: 2;
    grid-row: 2;
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    font-size: 12.5px;
    color: var(--hkco-sub);
}
.hkco-order-card #payment .payment_methods > li:has(input:checked) .payment_box,
.hkco-order-card #payment .payment_methods > li.active-payment .payment_box {
    display: block !important;
}
.hkco-order-card #payment .payment_box p {
    margin: 0;
    font-size: 12.5px;
    color: var(--hkco-sub);
    line-height: 1.4;
}
.hkco-order-card #payment .payment_box fieldset {
    border: none;
    padding: 2px 0 0;
    margin: 0;
}

/* "Recommended" badge */
.hkco-pay-rec {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hkco-orange);
    background: rgba(245,166,35,.12);
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Delivery promise (highlighted pill) + perks (thin text) — injected by JS.
   The pill carries the timeline so the prepaid/COD speed contrast reads first;
   perks trail after it in a lighter weight, no pill.

   Responsive model, mobile-first:
     - narrow  : pill on its own row, perks wrap beneath it
     - >=520px : pill and perks share one row
   Each perk owns its leading dot, so a wrapped row never orphans a separator. */
.hkco-order-card #payment .payment_methods > li .hkco-pay-eta {
    grid-column: 2;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 5px;
    min-width: 0;          /* let the flex child shrink instead of overflowing */
}

/* Revealed with the description, for the selected method only. */
.hkco-order-card #payment .payment_methods > li:has(input:checked) .hkco-pay-eta,
.hkco-order-card #payment .payment_methods > li.active-payment .hkco-pay-eta {
    display: flex;
}

/* Timeline pill */
.hkco-order-card #payment .hkco-pay-eta .hkco-perk-lead {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}
.hkco-order-card #payment .hkco-pay-eta .hkco-perk-lead svg {
    display: block;
    flex-shrink: 0;
}
/* Prepaid — express, carries the visual weight */
.hkco-order-card #payment .hkco-pay-eta.is-express .hkco-perk-lead {
    color: #15803D;
    background: rgba(39, 174, 96, .14);
}
/* COD — same day, deliberately quieter */
.hkco-order-card #payment .hkco-pay-eta.is-sameday .hkco-perk-lead {
    color: #4B5563;
    background: rgba(107, 114, 128, .12);
}

/* Perks — thin text, never a pill. Wraps item-by-item. */
.hkco-order-card #payment .hkco-pay-eta .hkco-perk-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--hkco-sub);
}
.hkco-order-card #payment .hkco-pay-eta .hkco-perk {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    white-space: nowrap;   /* never break inside a perk phrase */
}
/* Leading dot per perk — survives wrapping cleanly */
.hkco-order-card #payment .hkco-pay-eta .hkco-perk::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    flex-shrink: 0;
}

/* Roomier screens: pill and perks sit on one row */
@media (min-width: 520px) {
    .hkco-order-card #payment .payment_methods > li .hkco-pay-eta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
    }
}

/* Very narrow phones: tighten type so three perks still fit two lines */
@media (max-width: 360px) {
    .hkco-order-card #payment .hkco-pay-eta .hkco-perk-list {
        font-size: 11px;
        gap: 1px 8px;
    }
    .hkco-order-card #payment .hkco-pay-eta .hkco-perk::before {
        margin-right: 5px;
    }
}

/* Keep the grid from overflowing on small screens */
.hkco-order-card #payment .payment_methods > li,
.hkco-order-card #payment .payment_methods > li label {
    min-width: 0;
}

/* COD hand/cash icon — injected by JS */
.hkco-pay-icon-cod {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--hkco-sub);
    opacity: .7;
}
.hkco-pay-icon-cod svg {
    display: block;
}

/* ── Place Order Button ─────────────────────────────────────── */
.hkco-order-card #payment .place-order {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
.hkco-order-card #payment #place_order,
.hkco-order-card #payment button[name="woocommerce_checkout_place_order"] {
    width: 100% !important;
    height: 52px !important;
    background: var(--hkco-orange) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    letter-spacing: .3px;
    transition: background .2s, transform .1s !important;
    -webkit-text-fill-color: #fff !important;
}
.hkco-order-card #payment #place_order:hover {
    background: var(--hkco-orange-dk) !important;
    transform: translateY(-1px);
}
.hkco-order-card #payment #place_order:active {
    transform: translateY(0);
}

/* Terms row */
.hkco-order-card #payment .woocommerce-terms-and-conditions-wrapper {
    margin-top: 12px;
}
.hkco-order-card #payment .form-row.terms {
    margin: 12px 0 0 !important;
    width: 100% !important;
}
.hkco-order-card #payment .form-row.terms label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: var(--hkco-sub);
    width: auto !important;
    float: none !important;
}
.hkco-order-card #payment .form-row.terms input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin: 1px 0 0 !important;
    accent-color: var(--hkco-orange);
    float: none !important;
    display: inline-block !important;
    position: static !important;
}
.hkco-order-card #payment .form-row.terms a {
    color: #2563EB;
    text-decoration: underline;
}

/* ── Edit Address Modal ─────────────────────────────────────── */
.hkco-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hkco-modal-overlay.open {
    display: flex !important;
}
.hkco-modal {
    background: #ffffff;           /* direct value — no variable dependency */
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    opacity: 1;                    /* prevent animation freeze at opacity:0 */
    transform: none;
    /* subtle fade-up only when parent is already flex (won't fire while hidden) */
    transition: opacity .18s ease, transform .18s ease;
}
.hkco-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #E5E7EB;
}
.hkco-modal-hdr h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}
.hkco-modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background .15s;
}
.hkco-modal-close:hover { background: #F8F9FA; }
.hkco-modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* Modal map: full-width strip between the address input and the flat/floor field */
.hkco-modal-map-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    height: 180px;
    flex-shrink: 0;
}
.hkco-modal-map-wrap .hkco-map {
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
}
/* Google Places autocomplete dropdown must sit above the modal overlay */
.pac-container {
    z-index: 999999 !important;
}
.hkco-modal-ftr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid #E5E7EB;
}
.hkco-btn-ghost {
    height: 40px;
    padding: 0 20px;
    background: none;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: border-color .15s;
}
.hkco-btn-ghost:hover { border-color: #9CA3AF; }
.hkco-btn-primary {
    height: 40px;
    padding: 0 24px;
    background: #F5A623;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
}
.hkco-btn-primary:hover { background: #E09512; }

/* ── Footer Trust Badges ────────────────────────────────────── */
.hkco-footer-trust {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--hkco-border);
}
.hkco-ft-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hkco-ft-item svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--hkco-sub);
}
.hkco-ft-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hkco-text);
    margin-bottom: 2px;
}
.hkco-ft-item span {
    font-size: 12px;
    color: var(--hkco-sub);
}

/* ── Suppress X-Store checkout-specific UI on our pages ─────── */
.woocommerce-checkout .cart-checkout-light-header,
.woocommerce-checkout .etheme-above-checkout-form,
.woocommerce-checkout .cart-checkout-nav,
.woocommerce-checkout .cart-checkout-light-footer {
    display: none !important;
}
/* Hide only the back-link ("Return to shipping") inside the footer-links block.
   The forward "Swipe to Continue" button also uses .etheme-checkout-footer-step
   but it additionally carries the .button class — so :not(.button) targets only
   the back-link. */
.woocommerce-checkout .etheme-checkout-footer-step:not(.button) {
    display: none !important;
}

/* ── Quick-OS header shell wrapper (scopes quick-desktop.css rules) ─ */
/* .hqd-shell applies a full-bleed breakout trick:
 *   position:relative; width:100vw; left:50%; margin-left:-50vw
 * For the checkout header we do NOT want this breakout — the container
 * is already full-width.  Reset every positioning property so the div
 * behaves like a normal block element inside the flow. */
.hkco-hdr-shell {
    display: block !important;
    position: static !important;   /* cancel relative (required for left:50% to work) */
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    overflow-x: visible !important;
    font-family: inherit !important; /* don't force Inter here; header inner will set it */
}
/* Prevent any residual hqd-shell body/content styles from leaking */
.hkco-hdr-shell > *:not(.hqd-pdp-header):not(.hqd-hero-bar) {
    display: none !important;
}
/* Override pill margin/border-radius for the checkout shell (already full-width) */
.hkco-hdr-shell .hqd-hero-bar {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22) !important;
}

/* ── Notices: hide all WC notices on checkout (coupon applied, messages, info) ── */
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    display: none !important;
}

/* ── Inline field errors ────────────────────────────────────── */
.hkco-input.hkco-field-error {
    border-color: #e53e3e !important;
    background-color: #fff8f8 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(229,62,62,.12) !important;
}
.hkco-error-msg {
    display: block;
    color: #e53e3e;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    line-height: 1.4;
}

/* ── Non-field notice bar (e.g. "no seller available") ──────── */
.hkco-non-field-notice {
    background: #fff8e6;
    border-left: 4px solid var(--hkco-orange);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: var(--hkco-text);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.hkco-non-field-notice ul {
    margin: 0; padding: 0; list-style: none;
}
.hkco-non-field-notice li + li { margin-top: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hkco-layout {
        grid-template-columns: 1fr;
    }
    .hkco-right {
        order: -1; /* Summary on top on mobile */
    }
    .hkco-order-card { position: static; }
    .hkco-footer-trust {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .hkco-trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hkco-steps-wrap, .hkco-form { padding: 0 16px; }
    .hkco-row { grid-template-columns: 1fr; }
    .hkco-addr-form-split { grid-template-columns: 1fr; }
    .hkco-footer-trust { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hkco-trust-sep { display: none; }
    .hkco-step-label { font-size: 11px; }
}

/* ================================================================
   MOBILE REDESIGN  ≤ 768px
   Desktop (≥ 1024px) is completely untouched.
   ================================================================ */

/* ── Mobile elements: hidden by default, shown only inside ≤768 ─ */
.hkco-mob-sticky,
.hkco-mob-drawer,
.hkco-mob-deliver-to-hdr,
.hkco-mob-swipe {
    display: none;
}
/* Mobile checkout header removed — plugin's hqm-wrap header serves this role */
.hkco-mob-hdr {
    display: none !important;
}

@media (max-width: 768px) {

    /* ── Hide desktop-only elements ─────────────────────────────── */
    .hkco-hdr-shell,
    .hkco-trust-bar,
    .hkco-footer-trust,
    .hkco-eta {
        display: none !important;
    }

    /* ── Hide in-page action buttons — slider handles submit on mobile ─ */
    /* xStore's "Swipe to Continue" / step-advance button */
    .etheme-checkout-multistep-footer-links {
        display: none !important;
    }
    /* WooCommerce place-order button (triggered programmatically by slider) */
    .hkco-order-card #payment #place_order,
    .hkco-order-card #payment button[name="woocommerce_checkout_place_order"] {
        display: none !important;
    }

    /* ── Order summary visible on mobile (payment section only) ─── */
    .hkco-right {
        display: block;
        order: 1; /* sits below the delivery form */
    }
    .hkco-right .hkco-order-card {
        position: static;
    }
    /* Hide items + totals table; keep payment options */
    .hkco-order-header,
    .hkco-review-table {
        display: none !important;
    }

    /* ── Mobile Header ──────────────────────────────────────────── */
    .hkco-mob-hdr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 200;
        background: #fff;
        border-bottom: 1px solid #E5E7EB;
        height: 60px;
        padding: 0 16px;
        box-sizing: border-box;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }

    .hkco-mob-back {
        background: none;
        border: none;
        padding: 8px;
        margin-left: -8px;
        color: #1A1A2E;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .hkco-mob-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
    }
    .hkco-mob-logo img {
        max-height: 32px;
        width: auto;
        display: block;
    }

    .hkco-mob-hdr-right {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .hkco-mob-secure {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 9px;
        color: #6B7280;
        line-height: 1.3;
        text-align: left;
    }
    .hkco-mob-secure svg {
        flex-shrink: 0;
    }

    .hkco-mob-cart-ico {
        position: relative;
        display: flex;
        align-items: center;
        color: #1A1A2E;
        text-decoration: none;
    }
    .hkco-mob-cart-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #F5A623;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        line-height: 1;
    }

    /* ── Step Progress (mobile tweaks) ──────────────────────────── */
    /* Stack the label BELOW the circle so the row never overflows
       horizontally (otherwise "Review & Place Order" gets clipped). */
    .hkco-steps-wrap {
        max-width: 100%;
        padding: 14px 12px;
        margin-top: 0;
        overflow: visible;
    }
    .hkco-steps {
        padding: 0;
        align-items: flex-start;   /* connector lines align to circle row */
    }
    .hkco-step {
        flex-direction: column;    /* circle on top, label underneath */
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
        max-width: 84px;
    }
    .hkco-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .hkco-step-label {
        font-size: 10.5px;
        line-height: 1.25;
        white-space: normal;       /* allow wrapping under the circle */
        text-align: center;
    }
    /* Drop the connector down to the circle's vertical centre (28px / 2) */
    .hkco-step-line {
        margin: 14px 6px 0;
        min-width: 0;
    }

    /* ── Mobile ETA Banner ──────────────────────────────────────── */
    .hkco-mob-eta-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 16px 12px;
        background: #EBF9F1;
        border-radius: 14px;
        padding: 16px;
        overflow: hidden;
    }

    .hkco-mob-eta-left {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    .hkco-mob-eta-label {
        font-size: 12px;
        color: #6B7280;
        font-weight: 500;
    }
    .hkco-mob-eta-time {
        font-size: 26px;
        font-weight: 800;
        color: #16A34A;
        line-height: 1.1;
    }
    .hkco-mob-eta-sub {
        font-size: 13px;
        color: #6B7280;
    }

    .hkco-mob-eta-right {
        flex-shrink: 0;
    }
    .hkco-mob-eta-right img {
        max-height: 90px;
        width: auto;
        object-fit: contain;
        display: block;
        margin-right: -8px;
    }

    /* ── Page layout ────────────────────────────────────────────── */
    .hkco-form {
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 100px; /* space for sticky bar */
        margin-top: 8px;
    }
    .hkco-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* ── Cards ──────────────────────────────────────────────────── */
    .hkco-card {
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
    }

    /* ── "Deliver to" mobile heading ────────────────────────────── */
    .hkco-mob-deliver-to-hdr {
        display: block;
        font-size: 16px;
        font-weight: 700;
        color: #1A1A2E;
        margin-bottom: 10px;
        margin-top: 4px;
    }

    /* ── Address card on mobile ─────────────────────────────────── */
    .hkco-addr-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hkco-addr-card-top {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .hkco-addr-type-row {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .hkco-edit-btn {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 13px;
        color: #2563EB;
        text-decoration: none;
        font-weight: 500;
    }
    .hkco-addr-text {
        padding-left: 0;
        font-size: 13px;
        color: #6B7280;
    }

    /* Steps rows keep 2-column layout */
    .hkco-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* ── Mobile Sticky Bottom Bar ───────────────────────────────── */
    .hkco-mob-sticky {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 300;
        background: #fff;
        border-top: 1px solid #E5E7EB;
        padding: 12px 16px;
        box-shadow: 0 -2px 12px rgba(0,0,0,.08);
        box-sizing: border-box;
    }

    .hkco-mob-sticky-left {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .hkco-mob-sticky-label {
        font-size: 11px;
        color: #6B7280;
        line-height: 1;
    }
    .hkco-mob-sticky-price {
        font-size: 18px;
        font-weight: 700;
        color: #1A1A2E;
        line-height: 1.2;
    }
    .hkco-mob-sticky-tax {
        font-size: 10px;
        color: #6B7280;
        line-height: 1.2;
    }
    .hkco-mob-sticky-details {
        background: none;
        border: none;
        padding: 0;
        font-size: 12px;
        color: #F5A623;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: 500;
    }

    /* ── Swipe-to-order slider (sticky bar) ─────────────────────── */
    .hkco-mob-swipe {
        display: block;
        flex: 1;
        min-width: 0;
        max-width: 230px;
    }
    .hkco-mob-swipe-track {
        position: relative;
        height: 48px;
        background: rgba(245, 166, 35, 0.1);
        border: 2px solid #F5A623;
        border-radius: 100px;
        overflow: hidden;
        user-select: none;
        -webkit-user-select: none;
        touch-action: none;
        cursor: default;
    }
    .hkco-mob-swipe-fill {
        position: absolute;
        top: 0; left: 0; bottom: 0;
        width: 0;
        background: linear-gradient(90deg, #F5A623 60%, #E09512);
        border-radius: 100px;
        pointer-events: none;
    }
    .hkco-mob-swipe-knob {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid #F5A623;
        color: #F5A623;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(245, 166, 35, .35);
        will-change: left;
        cursor: grab;
        touch-action: none;
        flex-shrink: 0;
    }
    .hkco-mob-swipe-knob:active { cursor: grabbing; }
    .hkco-mob-swipe-text {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 52px;
        padding-right: 10px;
        font-size: 12px;
        font-weight: 700;
        color: #B07D00;
        pointer-events: none;
        z-index: 1;
        white-space: nowrap;
        letter-spacing: .2px;
    }
    .hkco-mob-swipe-track.swipe-done {
        border-color: #F5A623;
    }
    .hkco-mob-swipe-track.swipe-done .hkco-mob-swipe-knob {
        background: #F5A623;
        border-color: #F5A623;
        color: #fff;
        cursor: default;
    }
    .hkco-mob-swipe-track.swipe-done .hkco-mob-swipe-text {
        color: #fff;
        padding-left: 0;
    }

    /* ── Mobile Order Summary Drawer ────────────────────────────── */
    .hkco-mob-drawer {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 400;
    }
    .hkco-mob-drawer.open {
        display: block;
    }

    .hkco-mob-drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .4);
    }

    .hkco-mob-drawer-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform .3s ease;
    }
    .hkco-mob-drawer.open .hkco-mob-drawer-panel {
        transform: translateY(0);
    }

    .hkco-mob-drawer-hdr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px 12px;
        border-bottom: 1px solid #E5E7EB;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }
    .hkco-mob-drawer-title {
        font-size: 16px;
        font-weight: 700;
        color: #1A1A2E;
    }
    .hkco-mob-drawer-close {
        background: none;
        border: none;
        cursor: pointer;
        color: #6B7280;
        padding: 4px;
        display: flex;
        align-items: center;
    }

    .hkco-mob-drawer-body {
        padding: 16px;
    }

    /* ── Inside the drawer: show order items/totals (hidden on main page) ── */
    .hkco-mob-drawer-body .hkco-review-table {
        display: block !important;
    }
    .hkco-mob-drawer-body .hkco-review-items,
    .hkco-mob-drawer-body .hkco-totals-table {
        display: block !important;
    }
    .hkco-mob-drawer-body .hkco-savings-row td {
        display: table-cell !important;
    }
    .hkco-mob-drawer-body .hkco-savings-banner {
        display: flex !important;
    }

    /* ── Tablet/mobile: before-form notices ─────────────────────── */
    .hkco-before-form {
        padding: 0 16px;
        margin-top: 8px;
    }

} /* end @media (max-width: 768px) */

/* ── Exact-location pin status (below the map) ── */
.hkco-pin-status {
    display: none;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f8ee;
    border: 1px solid #cfe5c6;
    font-size: 13px;
    line-height: 1.4;
    color: #1f3a17;
    overflow-wrap: anywhere;
}
.hkco-pin-status strong { font-weight: 600; }
.hkco-pin-status .hkco-pin-hint {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #5a6b55;
}
.hkco-pin-status.hkco-pin-warn {
    background: #fff7e6;
    border-color: #f5c46b;
    color: #6b4500;
}
.hkco-pin-status.hkco-pin-warn .hkco-pin-hint { color: #8a5a00; }
