/* Cookie consent banner + cookie policy page */
.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 24px));
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(10, 18, 31, 0.96);
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    z-index: 1200;
}

.cookie-consent-banner h2,
.cookie-consent-page h1 {
    margin: 0 0 10px;
}

.cookie-consent-banner p,
.cookie-consent-page p {
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-banner p {
    color: rgba(248, 250, 252, 0.82);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.cookie-consent-actions .cookie-consent__accept,
.cookie-consent-actions .cookie-consent__decline,
.cookie-consent-actions .cookie-consent__manage,
.cookie-group-form input[type="submit"] {
    border-radius: 999px;
    font: inherit;
    padding: 11px 18px;
    transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.cookie-consent-actions .cookie-consent__accept,
.cookie-group-form .cookie-group-accept {
    border: none;
    background: #d8ff72;
    color: #142304;
    font-weight: 700;
    cursor: pointer;
}

.cookie-consent-actions .cookie-consent__decline,
.cookie-group-form .cookie-group-decline {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #f8fafc;
    cursor: pointer;
}

.cookie-group-form .cookie-group-decline {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.cookie-consent-actions .cookie-consent__manage {
    color: #d8ff72;
    text-decoration: none;
    font-weight: 600;
    padding-left: 0;
}

.cookie-consent-actions .cookie-consent__accept:hover,
.cookie-consent-actions .cookie-consent__decline:hover,
.cookie-consent-actions .cookie-consent__manage:hover,
.cookie-group-form input[type="submit"]:hover {
    transform: translateY(-1px);
}

body.with-cookie-bar {
    padding-bottom: 220px;
}

.cookie-consent-page {
    max-width: 900px;
    margin: 48px auto 72px;
    padding: 0 20px;
}

.cookie-group {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #d9e0ea;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.cookie-group-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.cookie-group-title h3 {
    margin: 0;
}

.cookie-group-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-group-form form {
    margin: 0;
}

.cookie-group-required,
.cookie-consent-accepted,
.cookie-consent-declined {
    font-weight: 700;
}

.cookie-group-required,
.cookie-consent-accepted {
    color: #166534;
}

.cookie-consent-declined {
    color: #b91c1c;
}

.cookie-group table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
}

.cookie-group th,
.cookie-group td {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.cookie-group th {
    width: 28%;
    color: #0f172a;
}

@media (max-width: 640px) {
    .cookie-consent-banner {
        bottom: 16px;
        padding: 20px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions .cookie-consent__manage {
        padding: 0;
    }

    .cookie-group {
        padding: 20px;
    }

    .cookie-group th,
    .cookie-group td {
        display: block;
        width: 100%;
    }

    .cookie-group td {
        padding-top: 0;
    }
}

/* Soft-launch feedback widget */
#bp-feedback-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 6px;
}
#bp-feedback-launcher[hidden] { display: none; }
#bp-feedback-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: #d8ff72;
    color: #142304;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#bp-feedback-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.32); }
#bp-feedback-dismiss {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
}
#bp-feedback-dismiss:hover { opacity: 1; }
#bp-feedback-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; }
#bp-feedback-modal[hidden] { display: none; }
.bp-feedback-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 26, 0.6); }
.bp-feedback-card {
    position: relative;
    width: min(440px, calc(100% - 24px));
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: 0 30px 70px rgba(8, 14, 26, 0.45);
}
.bp-feedback-card h2 { margin: 0 0 6px; font-size: 20px; }
.bp-feedback-lead { margin: 0 0 16px; color: #475569; font-size: 14px; line-height: 1.5; }
.bp-feedback-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: #1e293b; }
.bp-feedback-card input[type="text"],
.bp-feedback-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    background: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
}
.bp-feedback-card textarea { resize: vertical; }
.bp-feedback-card input[type="text"]:focus,
.bp-feedback-card textarea:focus { outline: 2px solid #d8ff72; outline-offset: 1px; background: #ffffff; }
.bp-feedback-actions { margin-top: 16px; display: flex; justify-content: flex-end; }
.bp-feedback-submit {
    border: none;
    background: #142304;
    color: #d8ff72;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
}
.bp-feedback-submit:disabled { opacity: 0.6; cursor: progress; }
.bp-feedback-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
.bp-feedback-status { margin: 12px 0 0; font-size: 13px; }
.bp-feedback-status.ok { color: #166534; }
.bp-feedback-status.err { color: #b91c1c; }
@media (max-width: 480px) {
    #bp-feedback-launcher { right: 12px; bottom: 12px; }
    #bp-feedback-btn { padding: 9px 14px; font-size: 13px; }
}

/* Player search dropdown (navbar autocomplete) */
#player-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}
#player-search-suggestions[hidden] { display: none; }
#player-search-suggestions li {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}
#player-search-suggestions li:hover,
#player-search-suggestions li[aria-selected="true"] {
    background: #eee;
}
#player-search-suggestions img {
    width: 20px;
    height: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
