/* Choose location page */
.choose-location-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: stretch;
    padding: 24px 0;
}

.choose-location-layout {
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.choose-location-form-panel {
    flex: 1 1 50%;
    padding: 40px 32px;
}

.choose-location-hero-panel {
    flex: 1 1 50%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.choose-location-hero-content {
    font-size: 1.25rem;
    color: #2e7d32;
    text-align: center;
    font-weight: 600;
}

.choose-location-brand {
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 24px;
}

.choose-location-form-panel h1 {
    margin: 0 0 8px;
    color: #1b5e20;
}

.choose-location-subtitle {
    color: #666;
    margin-bottom: 24px;
}

.choose-location-form-panel .inputs {
    margin-bottom: 16px;
}

.choose-location-form-panel select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.choose-location-default {
    margin: 16px 0;
}

.choose-location-continue {
    width: 100%;
    margin-top: 8px;
}

.choose-location-links {
    margin-top: 16px;
    text-align: center;
}

.choose-location-link {
    background: none;
    border: none;
    color: #2e7d32;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
}

/* Map popup */
.delivery-location-map-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.delivery-location-map-popup.is-visible {
    display: flex;
}

.delivery-location-map-popup-card {
    background: #eef8f0;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.delivery-location-map-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 4px 8px;
}

.delivery-location-map-popup-card h2 {
    margin: 0 0 4px;
    padding-right: 36px;
    color: #1b5e20;
}

.delivery-location-map-popup-card p {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.9rem;
}

.delivery-location-map-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}

.delivery-location-map {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.delivery-location-map-warning {
    background: #fff;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.delivery-location-map-confirm {
    width: 100%;
    margin-bottom: 12px;
}

.delivery-location-map-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-location-map-fallback {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header bar on other pages */
.delivery-location-bar {
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.delivery-location-change {
    color: #2e7d32;
    text-decoration: underline;
}

.delivery-location-error {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .choose-location-layout {
        flex-direction: column;
    }

    .choose-location-hero-panel {
        min-height: 180px;
    }
}
