/* Style sheet for [active_brewery_alerts] */

.aba-container-b3a527ef {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    font-family: system-ui, -apple-system, sans-serif;
}

/* Match FDI title exactly */
.aba-title-b3a527ef {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #F8002F !important;
    margin: 0 !important;
    border-bottom: none !important;
    text-decoration: none !important;
}

.aba-header-b3a527ef {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

/* Add / Remove Button styling matching standard buttons */
.aba-btn-trigger-b3a527ef {
    background-color: #f8002f !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
}

.aba-btn-trigger-b3a527ef:hover {
    background-color: #000c14 !important;
}

/* Subscriptions display grid/labels */
.aba-labels-list-b3a527ef {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* Subscribed Brewery Alert Label background colour #000C14 */
.aba-badge-b3a527ef {
    background-color: #000C14 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.aba-no-alerts-b3a527ef {
    font-style: italic;
    color: #64748b;
    margin: 0;
}

/* Modal Popup container styles */
.aba-modal-b3a527ef {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* Controlled via script */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
}

body.admin-bar .aba-modal-b3a527ef {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .aba-modal-b3a527ef {
        top: 46px;
    }
}

.aba-modal-overlay-b3a527ef {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 12, 20, 0.6);
    backdrop-filter: blur(4px);
}

.aba-modal-content-b3a527ef {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 2;
    overflow: hidden;
    animation: abaScaleUp_b3a527ef 0.2s ease-out;
}

@keyframes abaScaleUp_b3a527ef {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.aba-modal-header-b3a527ef {
    padding: 18px 25px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aba-modal-header-b3a527ef h4 {
    margin: 0;
    font-size: 18px;
    color: #000c14;
    font-weight: bold;
}

.aba-modal-close-b3a527ef {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.aba-modal-close-b3a527ef:hover {
    color: #f8002f;
}

.aba-modal-body-b3a527ef {
    padding: 25px;
    overflow-y: auto;
}

.aba-modal-desc-b3a527ef {
    margin-top: 0;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

/* Grid layout of checklist */
.aba-grid-b3a527ef {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

.aba-checkbox-label-b3a527ef {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    background: #ffffff;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

.aba-checkbox-label-b3a527ef:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.aba-checkbox-label-b3a527ef input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #F8002F;
}

.aba-checkbox-label-b3a527ef span {
    font-size: 14px;
    font-weight: 500;
    color: #000c14;
}

/* Modal Footer */
.aba-modal-footer-b3a527ef {
    border-top: 1px solid #eaeaea;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.aba-status-msg-b3a527ef {
    font-size: 13px;
    font-weight: 600;
}

.aba-status-msg-b3a527ef.success {
    color: #22c55e;
}

.aba-status-msg-b3a527ef.error {
    color: #ef4444;
}

/* Beautiful Update button matching standard */
.aba-btn-submit-b3a527ef {
    background-color: #f8002f !important;
    color: #ffffff !important;
    font-weight: bold !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.2s ease !important;
    margin-left: auto;
}

.aba-btn-submit-b3a527ef:hover {
    background-color: #000c14 !important;
}

.aba-btn-submit-b3a527ef:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
