/* Dexter1862 Pickup — cart / checkout picker */

.dexter1862-pickup-row th { vertical-align: top; }
.dexter1862-pickup-cell { text-align: left !important; }

/* The site's block-style shipping row omits the width WooCommerce's block
   CSS gives the description, so at desktop widths the method label sits
   on the same line as the amount ("FreeLocal pickup"). Give the
   description the full row, as the block does. */
.woocommerce-checkout-review-order-table .wc-block-components-totals-shipping .wc-block-components-totals-item__description { width: 100%; }

/* Checkout: the block-style cell. WooCommerce bolds every tfoot cell of a
   shop_table, so reset the weight the same way the theme's shipping cell
   does (label 500, description 500 at 0.875em, the name in <strong>). */
.dexter1862-pickup-cell .wc-block-components-totals-item__label { font-weight: 500; }
.dexter1862-pickup-cell .wc-block-components-totals-item__value { font-weight: 400; }
.dexter1862-pickup-cell .wc-block-components-totals-item__description {
    width: 100%; margin-top: 4px; font-size: 0.875em; font-weight: 500; line-height: 1.5;
}

.dexter1862-pickup-selected { display: grid; gap: 2px; line-height: 1.4; }
td.dexter1862-pickup-cell[data-dexter1862-pickup-summary] { font-size: 0.95em; } /* cart row */
.dexter1862-pickup-selected-hours { color: inherit; opacity: 0.75; font-size: 0.9em; }
.dexter1862-pickup-selected-actions { font-size: 0.9em; }
.dexter1862-pickup-rate-location { opacity: 0.75; font-size: 0.9em; }
.dexter1862-pickup-order-note { margin: 12px 0 0; font-size: 0.9em; line-height: 1.4; }

/* Thank-you / confirmation page: the pickup location with the company's
   support contact beside it (stacked on narrow screens). */
.dexter1862-pickup-order-columns { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.dexter1862-pickup-order-columns > section { flex: 1 1 260px; min-width: 0; margin: 0; }

.dexter1862-pickup-link {
    background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
    text-decoration: underline; cursor: pointer; line-height: inherit;
}
.dexter1862-pickup-link:hover { text-decoration: none; }
.dexter1862-pickup-choose { white-space: normal; }

/* Dialog */
.dexter1862-pickup-modal {
    border: 0; border-radius: 10px; padding: 0; max-width: min(560px, calc(100vw - 32px));
    width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); color: #222; background: #fff;
}
.dexter1862-pickup-modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.dexter1862-pickup-modal.is-fallback-open { position: fixed; inset: 0; margin: auto; z-index: 100000; display: block; height: fit-content; }
.dexter1862-pickup-modal-inner { padding: 20px 22px 22px; max-height: calc(100vh - 64px); overflow: auto; box-sizing: border-box; }
.dexter1862-pickup-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dexter1862-pickup-modal-header h2 { margin: 0; font-size: 1.25em; }
.dexter1862-pickup-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }

.dexter1862-pickup-search-fields { display: flex; gap: 8px; }
.dexter1862-pickup-search-fields input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 10px 12px; font: inherit; border: 1px solid #c5c5c5; border-radius: 6px; }
.dexter1862-pickup-search .dexter1862-pickup-locate { display: inline-block; margin-top: 8px; font-size: 0.9em; }

.dexter1862-pickup-status { min-height: 1.4em; margin: 12px 0 4px; font-size: 0.95em; }
.dexter1862-pickup-status.is-error { color: #b32d2e; }

.dexter1862-pickup-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.dexter1862-pickup-result {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start;
    padding: 12px 14px; border: 1px solid #e1e1e1; border-radius: 8px;
}
.dexter1862-pickup-result.is-selected { border-color: currentColor; }
.dexter1862-pickup-result-name { font-weight: 600; }
.dexter1862-pickup-result-distance { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: 0.9em; opacity: 0.75; text-align: right; }
.dexter1862-pickup-result-address, .dexter1862-pickup-result-hours { grid-column: 1; font-size: 0.9em; line-height: 1.4; }
.dexter1862-pickup-result-hours { opacity: 0.75; }
.dexter1862-pickup-badge { grid-column: 1; justify-self: start; display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; line-height: 1.5; background: #fcf0d6; color: #6b4b00; }
.dexter1862-pickup-selected-pay { font-size: 0.9em; }
.dexter1862-pickup-result-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; margin-top: 4px; font-size: 0.9em; }
.dexter1862-pickup-result-actions .button { padding: 6px 14px; line-height: 1.2; }

.dexter1862-pickup-confirm-button {
    background-color: floralwhite;
    color: #ae4007;
}
@media (max-width: 480px) {
    .dexter1862-pickup-search-fields { flex-direction: column; }
    .dexter1862-pickup-result { grid-template-columns: 1fr; }
    .dexter1862-pickup-result-distance { grid-column: 1; grid-row: auto; text-align: left; }
}
