@charset "UTF-8";

/*
 * Stagely application — House styles (prefix sa-)
 * Brand colours come from variables.css (--primary, --primary-hover, --primary-rgb, --footer-bg).
 */

/* Cookie consent */
body.sa-cc-locked {
    overflow: hidden;
}

.sa-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.sa-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 13px 24px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.sa-cookie-btn--primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 5px 0 rgba(var(--primary-rgb), 0.3);
}

.sa-cookie-btn--primary:hover,
.sa-cookie-btn--primary:focus-visible {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.sa-cookie-btn--ghost {
    background-color: transparent;
    border-color: #dee2e6;
    color: #3c4858;
}

.sa-cookie-btn--ghost:hover,
.sa-cookie-btn--ghost:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
}

.sa-cookie-btn--text {
    background-color: transparent;
    border: none;
    color: #8492a6;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 10px;
    padding-right: 10px;
}

.sa-cookie-btn--text:hover,
.sa-cookie-btn--text:focus-visible {
    color: var(--primary);
}

.sa-cookie-btn:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), 0.5);
    outline-offset: 2px;
}

.sa-cc-banner {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 372px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sa-cc-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sa-cc-banner-inner {
    padding: 22px 24px 20px;
}

.sa-cc-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px;
}

.sa-cc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.sa-cc-title {
    font-size: 16px;
    font-weight: 700;
    color: #3c4858;
    margin: 0;
    line-height: 1.2;
}

.sa-cc-text {
    font-size: 14px;
    line-height: 1.55;
    color: #8492a6;
    margin: 0 0 16px;
}

.sa-cc-banner .sa-cookie-btn {
    padding: 10px 18px;
    font-size: 13px;
}

.sa-cc-banner .sa-cookie-btn--text {
    padding-top: 6px;
    padding-bottom: 6px;
}

.sa-cc-policy-link {
    display: block;
    width: fit-content;
    margin-top: 6px;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.sa-cc-policy-link:hover {
    color: var(--primary-hover);
}

.sa-cc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sa-cc-actions .sa-cookie-btn--primary,
.sa-cc-actions .sa-cookie-btn--ghost {
    flex: 1 1 auto;
}

.sa-cc-actions .sa-cookie-btn--text {
    flex: 1 1 100%;
    margin-top: 4px;
}

.sa-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sa-cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 41, 66, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sa-cc-modal.is-visible .sa-cc-modal-backdrop {
    opacity: 1;
}

.sa-cc-modal-card {
    position: relative;
    width: 600px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 40px 32px;
    box-shadow: 0 20px 50px rgba(60, 72, 88, 0.3);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sa-cc-modal.is-visible .sa-cc-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sa-cc-modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    color: #3c4858;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sa-cc-modal-close:hover {
    background: var(--primary);
    color: #ffffff;
}

.sa-cc-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #3c4858;
    margin: 0 0 14px;
    padding-right: 40px;
}

.sa-cc-modal-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #8492a6;
    margin: 0 0 26px;
}

.sa-cc-cat {
    padding: 22px 0;
    border-top: 1px solid #e9ecef;
}

.sa-cc-cat:last-of-type {
    border-bottom: 1px solid #e9ecef;
}

.sa-cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.sa-cc-cat-title {
    font-size: 17px;
    font-weight: 600;
    color: #3c4858;
}

.sa-cc-cat-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #8492a6;
    margin: 0;
}

.sa-cc-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.sa-cc-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.sa-cc-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.sa-cc-slider {
    position: absolute;
    inset: 0;
    background: #ced4da;
    border-radius: 50px;
    transition: background 0.25s ease;
}

.sa-cc-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease;
}

.sa-cc-switch input:checked + .sa-cc-slider {
    background: var(--primary);
}

.sa-cc-switch input:checked + .sa-cc-slider::before {
    transform: translateX(22px);
}

.sa-cc-switch input:focus-visible + .sa-cc-slider {
    outline: 2px solid rgba(var(--primary-rgb), 0.5);
    outline-offset: 2px;
}

.sa-cc-modal-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.sa-cc-modal-actions .sa-cookie-btn {
    padding: 12px 18px;
    font-size: 13.5px;
}

/* Cookie policy table */
.sa-cookie-table-wrap {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
}

.sa-cookie-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 15px;
}

.sa-cookie-table th {
    text-align: left;
    background: #f8f9fa;
    color: #3c4858;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 18px;
    white-space: nowrap;
}

.sa-cookie-table td:nth-child(4) {
    white-space: nowrap;
}

.sa-cookie-table td {
    padding: 16px 18px;
    border-top: 1px solid #e9ecef;
    color: #8492a6;
    line-height: 1.5;
    vertical-align: top;
}

.sa-cookie-table code {
    background: #f8f9fa;
    color: var(--primary);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.sa-cookie-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.sa-cookie-tag--necessary {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.sa-cookie-tag--analytics {
    background: #f1f3f5;
    color: #3c4858;
}

/* Footer legal links */
.sa-footer-legal {
    font-size: 13px;
}

.sa-footer-legal .sa-linkbtn {
    color: var(--primary);
}

.sa-footer-legal .sa-linkbtn:hover,
.sa-footer-legal .sa-linkbtn:focus-visible {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .sa-cc-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .sa-cc-banner-inner {
        padding: 26px 24px 24px;
    }

    .sa-cc-actions .sa-cookie-btn--primary,
    .sa-cc-actions .sa-cookie-btn--ghost {
        flex: 1 1 100%;
    }

    .sa-cc-modal-card {
        padding: 32px 24px 26px;
    }

    .sa-cc-modal-actions {
        flex-wrap: wrap;
    }

    .sa-cc-modal-actions .sa-cookie-btn {
        flex: 1 1 100%;
        font-size: 14px;
        padding: 13px 24px;
    }
}

/* Headings restyled with a size class (h2.h5.modal-title): keep Bootstrap's modal title line-height over the theme's .h5 */
.modal-title.h5 {
    line-height: var(--bs-modal-title-line-height);
}

@media (prefers-reduced-motion: reduce) {
    .sa-cookie-btn,
    .sa-cc-banner,
    .sa-cc-modal-backdrop,
    .sa-cc-modal-card,
    .sa-cc-modal-close,
    .sa-cc-slider,
    .sa-cc-slider::before,
    .badge {
        transition: none;
    }

    .sa-cc-banner,
    .sa-cc-modal-card {
        transform: none;
    }
}
