/**
 * BizMusic Location Lightbox — Product Page
 */

/* Trigger button + summary */
.bizmusic-location-trigger-wrap {
    margin: 1.2em 0;
}

.bizmusic-location-trigger-btn {
    display: inline-block;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 0 20px !important;
    background: #ccc !important;
    color: #333 !important;
    transition: background 0.2s ease;
}

.bizmusic-location-trigger-btn.is-filled {
    background: #ccc !important;
}

.bizmusic-location-trigger-btn.is-filled::before {
    content: "\2713";
    color: #28a745;
    font-weight: 700;
    margin-right: 0.4em;
}

.bizmusic-location-summary {
    display: block;
    margin-top: 0.4em;
    font-size: 0.8em;
    color: #666;
    line-height: 1.3;
}

.bizmusic-location-summary:empty {
    display: none;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

/* Backdrop overlay */
.bizmusic-location-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.bizmusic-location-modal-overlay.is-open {
    display: flex;
}

/* Modal card — compact */
.bizmusic-location-modal {
    background: #fff;
    border-radius: 8px;
    padding: 1.4em 1.6em;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: bizmusic-loc-modal-in 0.2s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    font-size: 13px;
}

@keyframes bizmusic-loc-modal-in {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
.bizmusic-location-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
}

.bizmusic-location-modal-close:hover {
    color: #333;
}

.bizmusic-location-modal h3 {
    margin: 0 0 0.8em;
    font-size: 1.05em;
}

/* Form fields — compact */
.bizmusic-location-field {
    margin-bottom: 0;
}

.bizmusic-location-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.15em;
    font-size: 0.85em;
    color: #333;
}

.bizmusic-location-field label .required {
    color: #e2401c;
}

.bizmusic-location-field input,
.bizmusic-location-field select {
    width: 100%;
    padding: 0.35em 0.5em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.92em;
    box-sizing: border-box;
}

.bizmusic-location-field input:focus,
.bizmusic-location-field select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* City + Zip side-by-side row */
.bizmusic-location-field-row {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.bizmusic-location-field-row .bizmusic-location-field {
    margin-bottom: 0;
}

.bizmusic-location-field--city {
    flex: 1;
}

.bizmusic-location-field--zip {
    flex: 0 0 30%;
}

/* Save button */
.bizmusic-location-actions {
    margin-top: 0.8em;
}

.bizmusic-location-save-btn {
    display: block;
    width: 100%;
    padding: 0.5em 1em !important;
    font-size: 0.92em !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-align: center;
}

/* Validation error highlight */
.bizmusic-location-field.has-error input,
.bizmusic-location-field.has-error select {
    border-color: #e2401c;
    box-shadow: 0 0 0 1px #e2401c;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .bizmusic-location-modal {
        width: 95%;
        padding: 1.2em;
    }

    .bizmusic-location-field-row {
        flex-direction: column;
        gap: 0;
    }

    .bizmusic-location-field--city,
    .bizmusic-location-field--zip {
        flex: none;
        margin-bottom: 0.5em;
    }
}
