/* Woo Click & Collect — Checkout */

/* ── Informational notices (cart / checkout pages) ─────────────────────────
   These mirror the base styles in frontend.css. Colours come from CSS custom
   properties set by the notice template — overridable via Customise > Additional CSS.
   ── */
.wcc-product-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0;
    line-height: 1.5;
    font-size: 14px;
    background-color: var(--wcc-notice-bg, #fff8e1);
    color: var(--wcc-notice-color, #5d4037);
    border: 1px solid var(--wcc-notice-border, #ffcc02);
    padding: var(--wcc-notice-padding, 12px 16px);
    border-radius: var(--wcc-notice-radius, 4px);
}

.wcc-product-notice .wcc-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.4;
}

.wcc-product-notice .wcc-notice-text {
    flex: 1;
}

/* Extra bottom margin on cart so notice doesn't crowd the cart table */
.woocommerce-cart .wcc-product-notice {
    margin-bottom: 30px;
}

/* ── Location selector wrapper ── */
.wcc-location-selector {
    margin: 20px 0;
}

.wcc-selector-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
}

/* ── Cards list — full width stack ── */
.wcc-location-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

/* ── Individual card — slim button style ── */
.wcc-location-card {
    position: relative;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

.wcc-location-card:hover,
.wcc-location-card:focus {
    border-color: #7f54b3;
    box-shadow: 0 2px 8px rgba(127,84,179,0.12);
}

.wcc-location-card.wcc-card--selected {
    border-color: #7f54b3;
    background: #faf7ff;
    box-shadow: 0 2px 10px rgba(127,84,179,0.18);
}

/* Hide native radio — card itself acts as the control */
.wcc-location-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ── Card inner — single row: name + badges ── */
.wcc-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
}

.wcc-card-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin: 0;
    line-height: 1.3;
}

.wcc-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Selected tick pill */
.wcc-selected-indicator {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #7f54b3;
    background: #ede9f7;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.wcc-card--selected .wcc-selected-indicator {
    display: inline-block;
}

/* Closed badge */
.wcc-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.wcc-badge--closed {
    background: #fdecea;
    color: #c62828;
}

/* ── Selected summary panel ── */
.wcc-selected-summary {
    background: #faf7ff;
    border: 1px solid #c9b8ef;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 16px;
}

.wcc-summary-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #5b3fa5;
}

.wcc-summary-content > * {
    margin: 0 0 8px;
}

.wcc-summary-content > *:last-child {
    margin-bottom: 0;
}

.wcc-summary-name {
    font-size: 15px;
    margin: 0 0 10px;
}

/* Rows with emoji icon */
.wcc-summary-address,
.wcc-summary-phone,
.wcc-summary-map {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #444;
    margin: 0 0 6px;
    line-height: 1.5;
}

.wcc-summary-address {
    padding-top: 5px;
}

.wcc-summary-address a,
.wcc-summary-phone a,
.wcc-summary-map a {
    color: #444;
    text-decoration: none;
}

.wcc-summary-phone a,
.wcc-summary-map a {
    color: #7f54b3;
}

.wcc-summary-phone a:hover,
.wcc-summary-map a:hover {
    text-decoration: underline;
}

.wcc-summary-icon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1.5;
}

/* Section label rows (Hours, Instructions headings) */
.wcc-summary-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 4px;
    font-size: 13px;
}

/* Hours list */
.wcc-summary-hours {
    margin: 8px 0;
    font-size: 13px;
}

.wcc-summary-hours .wcc-opening-hours {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
}

.wcc-summary-hours .wcc-opening-hours li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #e8e0f5;
    color: #555;
    font-size: 13px;
}

.wcc-summary-hours .wcc-opening-hours li:last-child {
    border-bottom: none;
}

.wcc-summary-hours .wcc-day {
    font-weight: 600;
    min-width: 100px;
}

.wcc-summary-hours .wcc-closed {
    color: #e53935;
}

/* Instructions */
.wcc-summary-instructions {
    margin: 8px 0;
    font-size: 13px;
}

.wcc-summary-instructions-text {
    margin: 2px 0 0;
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}

/* Map link */
.wcc-summary-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7f54b3;
    font-size: 13px;
    text-decoration: none;
}

.wcc-summary-map-link:hover {
    text-decoration: underline;
}

/* ── Hidden field utility ── */
.wcc-hidden-field {
    display: none !important;
}

/* ── Customer pickup details (thank you / My Account) ── */
.wcc-customer-pickup-details {
    margin: 30px 0;
    padding: 20px;
    background: #faf7ff;
    border: 1px solid #c9b8ef;
    border-radius: 8px;
}

.wcc-customer-pickup-details .woocommerce-column__title {
    font-size: 18px;
    margin-bottom: 16px;
    color: #5b3fa5;
}

.wcc-pickup-block address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 10px;
}

.wcc-pickup-block .wcc-opening-hours {
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

.wcc-pickup-block .wcc-opening-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 3px 0;
    font-size: 13px;
}

/* ── Dropdown fallback ── */
.wcc-location-dropdown-wrap {
    margin: 16px 0;
}

.wcc-location-dropdown-wrap label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wcc-location-select {
    width: 100%;
    max-width: 420px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .wcc-card-inner {
        padding: 12px 14px;
    }
}

/* ── Cart item label badges ─────────────────────────────────────────────────
   Appear after the product name in the cart table and CheckoutWC sidebar.
   Colours come from CSS custom properties output per-type by Assets::output_label_css_vars().
   Each type has a --modifier class: wcc-item-label--pickup_only, --eligible, --category.
   Override any --wcc-label-bg / --wcc-label-color via Customise > Additional CSS.
   ── */
.wcc-item-label {
    display: inline-block;
    vertical-align: middle;
    background-color: var(--wcc-label-bg, #ede9f7);
    color: var(--wcc-label-color, #7f54b3);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    margin-left: 6px;
    letter-spacing: 0.01em;
}

/* Ensure the label sits neatly inside CheckoutWC's flex title container */
.cfw-cart-item-title .wcc-item-label {
    margin-left: 6px;
    flex-shrink: 0;
}
