/* Popup overlay */
.pickupstore-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

/* Popup window */
.pickupstore-popup {
    background: #fff;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 24px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border-radius: 16px;
    position: relative;
}

/* Title bar */
.pickupstore-popup .modal-title {
    margin: 0 40px 16px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

/* Close button */
.pickupstore-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    cursor: pointer;
    font-size: 22px;
    line-height: 22px;
    color: #6b7280;
}
.pickupstore-popup-close:hover {
    color: #111827;
}

/* Popup form */
.pickupstore-popup .postcode-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.pickupstore-popup .postcode-wrap .form-control {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 12px 16px;
    font-size: 14px;
}
.pickupstore-popup .postcode-wrap .input-group-btn {
    display: flex;
}
.pickupstore-popup .postcode-wrap .button {
    border-radius: 9999px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    padding: 12px 18px;
    font-weight: 600;
    line-height: 1;
}
.pickupstore-popup .postcode-wrap .button:hover {
    background: #000;
}

/* Loader overlay */
.pickupstore-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 90;
}

/* Loader box */
.bladzy-loading-mask.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 12px;
    z-index: 100;
    text-align: center;
    display: block;
}
.bladzy-loading-mask.popup img {
    width: 48px;
    height: 48px;
}

/* Lists & tabs */
.bladzy-pickupstore {
    font-size: 14px;
    color: #111827;
}
.bladzy-tabs .items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bladzy-tabs .data.item.title {
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 6px 12px;
    background: #f9fafb;
    cursor: pointer;
}
.bladzy-tabs .data.item.title.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.store-location-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.store-location-list td {
    padding: 14px 12px;
    border-top: 1px solid #e5e7eb;
    vertical-align: top;
}
.store-location-list tr:first-child td {
    border-top: none;
}
.store-location-list tr.store-location {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    font-size: 15px;
}
.store-location-list tr.store-location:hover {
    background: #f3f4f6;
}
.store-location-details td {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 15px;
}
.store-location-details .location,
.store-location-details .hours,
.store-location-details .address,
.store-location-details .phone,
.store-location-details .email {
    font-size: 15px;
}
.store-location-details h5 {
    margin: 8px 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.stock .present {
    color: #16a34a;
    font-weight: 600;
}
.stock .missing {
    color: #dc2626;
    font-weight: 600;
}

.pickup {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}
.pickup .next {
    margin-left: 4px;
}

.pickupstore-checkout-method {
    margin-top: 4px;
}

.pickupstore-checkout-method .pickupstore-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 9999px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.pickupstore-checkout-method .pickupstore-select-btn:hover {
    background: #000;
}

.pickupstore-checkout-method .pickupstore-select-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pickupstore-checkout-method .pickupstore-helper-text {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.pickupstore-checkout-method .pickupstore-dropdown-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pickupstore-checkout-method .pickupstore-dropdown {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
}

.pickupstore-checkout-method .pickupstore-inline-error {
    margin: 0;
    color: #b91c1c;
    font-size: 14px;
}

.pickupstore-checkout-method .pickupstore-loading-text {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.pickupstore-checkout-locations:empty {
    min-height: 120px;
}

.bladzy-address {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.bladzy-address h5 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.bladzy-address > div + h5 {
    margin-top: 16px;
}

.bladzy-address .action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid #111827;
    border-radius: 9999px;
    color: #111827;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.bladzy-address .hours_and_map {
    margin-top: 12px;
}

.bladzy-address .map,
.bladzy-address .pickup-store-location-map {
    min-height: 240px;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.bladzy-address .notification-note {
    margin-top: 16px;
}
