/* Store availability: a single set of styles, no version-by-version overrides. */
.wc-sync-store-availability,
.wc-sync-overlay {
    --wcs-ink: #232323;
    --wcs-surface: #FAFAFA;
    --wcs-expanded: #EFEFEF;
    --wcs-green: #0A9E17;
    color: var(--wcs-ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
}
.wc-sync-store-availability,
.wc-sync-store-availability *,
.wc-sync-overlay,
.wc-sync-overlay * { box-sizing: border-box; }
.wc-sync-store-availability [hidden],
.wc-sync-overlay [hidden] { display: none !important; }
.wc-sync-store-availability button,
.wc-sync-overlay button { font: inherit; text-transform: none; letter-spacing: normal; }
.wc-sync-store-availability { width: 100%; max-width: 100%; }

/* Product tabs keep desktop dimensions and existing mobile dimensions. */
.woocommerce-tabs ul.tabs li > a,
.woocommerce-tabs ul.tabs li > a.nav-link { font-weight: 700 !important; }
@media (min-width: 781px) {
    .woocommerce-tabs ul.tabs li > a,
    .woocommerce-tabs ul.tabs li > a.nav-link {
        font-size: 20px !important;
        padding: 13px 0 !important;
        margin: 0 0 -1px !important;
    }
}

/* Smaller WooCommerce product-tab labels only on mobile. */
@media (max-width: 780px) {
    .single-product .woocommerce-tabs ul.tabs li > a,
    .single-product .woocommerce-tabs ul.tabs li > a.nav-link {
        font-size: 17px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* Variation and region filters. */
.wc-sync-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 12px 16px;
    margin: 0 0 18px;
}
.wc-sync-filter-toolbar > .wc-sync-variant-picker,
.wc-sync-filter-toolbar > .wc-sync-region-filter {
    display: flex;
    flex: 0 1 250px;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    max-width: 250px;
    margin: 0;
    font-weight: 700;
    color: #232323;
}
.wc-sync-filter-toolbar label > span { font-size: 13px; }
.wc-sync-filter-toolbar select {
    display: block;
    width: 100%;
    height: 39px;
    min-height: 39px;
    padding: 7px 35px 7px 13px;
    border: 2px solid #232323;
    border-radius: 12px;
    background-color: #FAFAFA;
    color: #232323;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}
.wc-sync-filter-toolbar select:focus-visible,
.wc-sync-store-row-clickable:focus-visible { outline: 2px solid #232323; outline-offset: 2px; }

/* Every desktop row uses the same five-column grid as its heading. */
.wc-sync-column-head,
.wc-sync-store-row-top {
    display: grid;
    grid-template-columns: 125px minmax(0,1fr) 245px 133px 150px;
    gap: 13px;
    align-items: center;
    padding-right: 17px;
    padding-left: 17px;
}
.wc-sync-column-head {
    padding-top: 0;
    padding-bottom: 12px;
    color: #232323;
    font-size: 12px;
}
.wc-sync-store-rows {
    overflow: hidden;
    border: 2px solid #232323;
    border-radius: 16px;
    background: #FAFAFA;
}
.wc-sync-store-row { margin: 0; background: #FAFAFA; color: #232323; }
.wc-sync-store-row.is-expanded > .wc-sync-store-row-top { background: #EFEFEF; }
.wc-sync-store-row + .wc-sync-store-row { border-top: 2px solid #232323; }
.wc-sync-store-row-top { min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.wc-sync-store-row-clickable { cursor: pointer; }
.wc-sync-stock-badge {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 8px;
    background: #232323;
    color: #EFEFEF;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}
.wc-sync-stock-badge.is-yes { background: #0A9E17; color: #EFEFEF; }
.wc-sync-location-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.wc-sync-pin-button,
.wc-sync-online-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #232323;
}
.wc-sync-pin-button { border: 2px solid #232323; border-radius: 50%; pointer-events: none; }
.wc-sync-row-toggle {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 7px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #232323 !important;
    text-align: left;
    box-shadow: none !important;
    cursor: inherit;
}
.wc-sync-row-name { font-size: 14px; font-weight: 700; color: #232323; }
.wc-sync-row-address { font-size: 13px; font-weight: 400; color: #232323; overflow-wrap: anywhere; }
.wc-sync-svg { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 19px; height: 19px; color: #232323; }
.wc-sync-svg svg { display: block; width: 100%; height: 100%; }
.wc-sync-row-toggle > .wc-sync-svg { margin-left: auto; transition: transform .2s ease; }
.wc-sync-store-row.is-expanded .wc-sync-row-toggle > .wc-sync-svg { transform: rotate(180deg); }
.wc-sync-store-extra { display: contents; }
.wc-sync-hour-cell { color: #232323; font-size: 13px; line-height: 1.45; white-space: nowrap; }
.wc-sync-phone-cell { color: #232323 !important; font-size: 14px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.wc-sync-quick-action { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.wc-sync-cart-feedback { width: 100%; color: #232323; font-size: 11px; text-align: right; }
.wc-sync-cart-feedback:empty { display: none; }

/* All store action buttons use one hover rule, including the online button. */
.wc-sync-store-availability .wc-sync-action,
.wc-sync-overlay .wc-sync-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px !important;
    border: 2px solid #232323 !important;
    border-radius: 50px !important;
    background: #232323 !important;
    color: #EFEFEF !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease, border-radius .2s ease;
}
.wc-sync-store-availability .wc-sync-action:hover,
.wc-sync-store-availability .wc-sync-action:focus-visible,
.wc-sync-overlay .wc-sync-action:hover,
.wc-sync-overlay .wc-sync-action:focus-visible {
    background: #FFFFFF !important;
    color: #232323 !important;
    border-radius: 15px !important;
}
.wc-sync-action:focus-visible { outline: 2px solid #232323; outline-offset: 3px; }

/* Expanded shop: details on the left, Google Maps on the right. */
.wc-sync-row-details {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 16px;
    border-top: 0 solid #232323;
    background: #FFFFFF;
    transition: grid-template-rows .28s ease, opacity .22s ease,
                padding .28s ease, border-top-width .28s ease,
                visibility 0s linear .28s;
}
.wc-sync-store-row.is-expanded > .wc-sync-row-details {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    padding: 16px;
    border-top-width: 2px;
    transition: grid-template-rows .28s ease, opacity .22s ease,
                padding .28s ease, border-top-width .28s ease,
                visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .wc-sync-row-details,
    .wc-sync-store-row.is-expanded > .wc-sync-row-details {
        transition: none;
    }
}
.wc-sync-details-grid {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    gap: 20px;
    align-items: stretch;
}
.wc-sync-details-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 12px; }
.wc-sync-details-title { font-size: 19px; font-weight: 700; color: #232323; }
.wc-sync-detail-item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.wc-sync-detail-item > .wc-sync-svg { width: 22px; height: 22px; margin-top: 2px; }
.wc-sync-detail-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-sync-detail-label { font-size: 12px; color: #232323; }
.wc-sync-detail-value { font-size: 15px; color: #232323 !important; text-decoration: none !important; overflow-wrap: anywhere; }
.wc-sync-detail-action { align-self: flex-start; }
.wc-sync-row-map-preview { height: 300px; min-height: 240px; overflow: hidden; border: 2px solid #232323; border-radius: 11px; background: #FFFFFF; touch-action: auto; }
.wc-sync-row-map-preview:empty { display: none; }
.wc-sync-map-frame { display: block; width: 100%; height: 100%; min-height: 240px; border: 0; touch-action: auto; pointer-events: auto; }
.wc-sync-store-footnote { margin: 12px 0 0; font-size: 12px; color: #232323; }
.wc-sync-no-variant { padding: 16px; border-radius: 10px; background: #EFEFEF; color: #232323; }

/* Shop rows: compact layout at smaller widths. */
@media (max-width: 1200px) and (min-width: 901px) {
    .wc-sync-column-head,
    .wc-sync-store-row-top {
        grid-template-columns: 105px minmax(0, 1fr) 195px 123px 132px;
        gap: 10px;
        padding-inline: 12px;
    }
    .wc-sync-hour-cell { white-space: normal; }
    .wc-sync-phone-cell { font-size: 12px; }
}
@media (max-width: 900px) {
    .wc-sync-filter-toolbar { gap: 10px; }
    .wc-sync-filter-toolbar > .wc-sync-variant-picker,
    .wc-sync-filter-toolbar > .wc-sync-region-filter { flex: 1 1 100%; max-width: 100%; }
    .wc-sync-column-head { display: none; }
    .wc-sync-store-row-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 12px; }
    .wc-sync-stock-badge { grid-column: 1; grid-row: 1; font-size: 11px; }
    .wc-sync-location-cell { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
    .wc-sync-row-name { font-size: 15px; }
    .wc-sync-row-address,
    .wc-sync-store-extra > .wc-sync-hour-cell,
    .wc-sync-store-extra > .wc-sync-phone-cell { display: none; }
    .wc-sync-store-extra { grid-column: 2; grid-row: 1; display: block; }
    .wc-sync-quick-action { display: flex; justify-content: flex-end; }
    .wc-sync-quick-action .wc-sync-action { min-height: 34px; padding: 5px 10px !important; font-size: 11px !important; }
    .wc-sync-details-grid { grid-template-columns: 1fr; gap: 10px; }
    .wc-sync-details-info { padding: 10px; }
    .wc-sync-details-title { font-size: 17px; }
    .wc-sync-detail-value { font-size: 14px; }
    .wc-sync-store-row.is-expanded > .wc-sync-row-details { padding: 10px; }
    .wc-sync-row-map-preview { height: 235px; min-height: 220px; }
    .wc-sync-map-frame { min-height: 220px; }
}
@media (max-width: 390px) {
    .wc-sync-store-row-top { padding: 9px; }
    .wc-sync-quick-action .wc-sync-action { padding: 5px 8px !important; }
}

/* Pickup popup: same neutral style as the availability panel.
   No fixed-height cards, no empty flex space, no interior scrollbar. */
body.wc-sync-dialog-open { overflow: hidden !important; }
.wc-sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, .56);
    --wcs-ink: #232323;
    --wcs-surface: #FAFAFA;
    --wcs-expanded: #EFEFEF;
    color: #232323;
}
.wc-sync-overlay .wc-sync-dialog {
    position: relative;
    width: min(880px, 100%);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    padding: 18px;
    border: 2px solid #D8D8D8;
    border-radius: 25px;
    background: #FAFAFA;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}
.wc-sync-dialog-x {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #232323 !important;
    cursor: pointer;
}
.wc-sync-dialog-x .wc-sync-svg { width: 23px; height: 23px; }
.wc-sync-pickup-header { text-align: center; margin-bottom: 12px; }
.wc-sync-pickup-title {
    margin: 0 37px 3px !important;
    color: #232323 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}
.wc-sync-pickup-help {
    margin: 0 28px 8px !important;
    color: #666 !important;
    font-size: 12px !important;
    line-height: 1.35;
}
.wc-sync-pickup-selected-store {
    display: inline-block;
    max-width: 100%;
    margin: 0;
    padding: 5px 13px;
    border-radius: 50px;
    background: #EFEFEF;
    color: #232323;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.wc-sync-pickup-product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: stretch;
    gap: 10px;
}
.wc-sync-pickup-about,
.wc-sync-pickup-pricing,
.wc-sync-pickup-form {
    min-width: 0;
    padding: 13px;
    border: 2px solid #D8D8D8;
    border-radius: 16px;
    background: #FFFFFF;
}
.wc-sync-pickup-about {
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
}
.wc-sync-pickup-image {
    display: block;
    flex: 0 0 108px;
    width: 108px;
    height: 104px;
    margin: 0;
    border-radius: 15px;
    object-fit: contain;
}
.wc-sync-pickup-product-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wc-sync-pickup-product-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.wc-sync-variant-caption { color: #707070; font-size: 12px; }
.wc-sync-pickup-pricing { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.wc-sync-price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.wc-sync-price-line b { text-align: right; font-size: inherit; font-weight: 700; white-space: nowrap; }
.wc-sync-price-line b .amount,
.wc-sync-price-line b .woocommerce-Price-currencySymbol { font-size: inherit !important; font-weight: inherit; }
.wc-sync-price-line.is-discount b { color: #ED2324; }
.wc-sync-price-line.is-total { margin-top: 4px; padding-top: 9px; border-top: 2px solid #D8D8D8; font-size: 16px; font-weight: 700; }
.wc-sync-pickup-form { margin-top: 10px; padding: 13px; }
.wc-sync-pickup-form h3 { margin: 0 0 9px !important; color: #232323 !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.25; }
.wc-sync-pickup-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.wc-sync-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 2px solid #D2D2D2 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    color: #232323 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.wc-sync-input:focus { outline: none; border-color: #232323 !important; }
.wc-sync-pickup-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.wc-sync-privacy { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; min-width: 0; margin: 0 !important; color: #232323 !important; font-size: 12px; line-height: 1.3; }
/* Draw our own circular consent control: theme checkbox rules may stretch it. */
.wc-sync-overlay .wc-sync-privacy input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    margin: 0 4px 0 0 !important;
    border: 2px solid #ED2324 !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    vertical-align: middle;
    cursor: pointer;
}
.wc-sync-overlay .wc-sync-privacy input[type="checkbox"]:checked {
    background: radial-gradient(circle at center, #ED2324 0 4px, #FFFFFF 4.5px) !important;
}
.wc-sync-overlay .wc-sync-privacy input[type="checkbox"]:focus-visible {
    outline: 2px solid #232323;
    outline-offset: 3px;
}
.wc-sync-privacy-intro { color: #232323 !important; }
.wc-sync-privacy a,
.wc-sync-privacy-policy { color: #ED2324 !important; text-decoration: none; }
.wc-sync-overlay .wc-sync-submit { min-height: 39px; padding-inline: 20px !important; flex: 0 0 auto; }
.wc-sync-submit:disabled { opacity: .6; cursor: wait; }
.wc-sync-form-message { margin: 7px 0 0; color: #ED2324; font-size: 12px; line-height: 1.3; }
.wc-sync-form-message:empty { display: none; }
.wc-sync-order-confirmation { padding: 20px 10px 10px; text-align: center; color: #232323; }
.wc-sync-order-confirmation h3 { margin: 0 0 8px !important; }
.wc-sync-order-confirmation p { margin: 0; }
.wc-sync-honey { position: absolute !important; top: 0 !important; left: 0 !important; width: 0 !important; min-height: 0 !important; height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Tablet and phone: product horizontal, price summary on one line, short form. */
@media (max-width: 680px) {
    .wc-sync-overlay { padding: 12px 6px; }
    .wc-sync-overlay .wc-sync-dialog { width: 100%; max-height: calc(100dvh - 24px); padding: 17px 11px; border-radius: 18px; }
    .wc-sync-dialog-x { top: 3px; right: 3px; width: 28px; height: 28px; }
    .wc-sync-pickup-header { margin-bottom: 8px; }
    .wc-sync-pickup-title { margin: 0 27px 3px !important; font-size: 19px !important; }
    .wc-sync-pickup-help { margin: 0 15px 6px !important; font-size: 11px !important; line-height: 1.25; }
    .wc-sync-pickup-selected-store { padding: 4px 10px; font-size: 11px; }
    .wc-sync-pickup-product { grid-template-columns: 1fr; gap: 7px; }
    .wc-sync-pickup-about, .wc-sync-pickup-pricing, .wc-sync-pickup-form { padding: 9px; border-radius: 13px; }
    .wc-sync-pickup-about { gap: 10px; }
    .wc-sync-pickup-image { flex-basis: 76px; width: 76px; height: 65px; border-radius: 12px; }
    .wc-sync-pickup-product-title { font-size: 13px; }
    .wc-sync-variant-caption { font-size: 11px; }
    .wc-sync-pickup-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-block: 9px; }
    .wc-sync-price-line { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; font-size: 12px; }
    .wc-sync-price-line b { font-size: 12px; text-align: left; }
    .wc-sync-price-line.is-total { margin: 0; padding: 0 0 0 7px; border: 0; border-left: 2px solid #D8D8D8; font-size: 13px; }
    .wc-sync-price-line.is-total b { font-size: 13px; }
    .wc-sync-pickup-form { margin-top: 7px; }
    .wc-sync-pickup-form h3 { font-size: 15px !important; margin-bottom: 8px !important; }
    .wc-sync-pickup-fields { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
    .wc-sync-pickup-fields > :nth-child(3) { grid-column: 1 / -1; }
    .wc-sync-input { min-height: 37px; height: 37px; padding: 7px 9px !important; font-size: 13px !important; border-radius: 10px !important; }
    .wc-sync-pickup-footer { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 9px; }
    .wc-sync-privacy { font-size: 11px; }
    .wc-sync-overlay .wc-sync-submit { width: 100%; min-height: 37px; padding: 7px 12px !important; font-size: 13px !important; }
}
@media (max-width: 360px) {
    .wc-sync-overlay .wc-sync-dialog { padding: 15px 8px; }
    .wc-sync-pickup-product-title { font-size: 12px; }
    .wc-sync-pickup-image { flex-basis: 65px; width: 65px; height: 58px; }
    .wc-sync-price-line, .wc-sync-price-line b { font-size: 11px; }
    .wc-sync-price-line.is-total, .wc-sync-price-line.is-total b { font-size: 12px; }
}
/* Very short / landscape viewports or a visible keyboard: preserve access
   to submit rather than clipping content; standard phone/desktop have no scroll. */
@media (max-height: 480px) {
    .wc-sync-overlay .wc-sync-dialog { overflow-y: auto; }
}

/* Online cart feedback remains within the existing action column. */
.wc-sync-cart-feedback { display: block; margin-top: 5px; font-size: 12px; line-height: 1.35; color: #232323; overflow-wrap: anywhere; }
.wc-sync-cart-feedback:empty { display: none; }
.wc-sync-cart-link { display: inline-block; margin-left: 6px; color: #232323; text-decoration: underline; font-weight: 700; }
.wc-sync-action-online:disabled { opacity: .7; cursor: wait; }
