/*** Cookie Consent Banner + Preferences - INFRA-1124 (WBOL Login Page) ***/

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9998;
    max-width: 331px;
    background-color: rgba(255, 255, 255, 1);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 6px 3px 14px rgba(25, 25, 25, 0.25),
                23px 13px 26px rgba(25, 25, 25, 0.21),
                53px 30px 36px rgba(25, 25, 25, 0.13),
                91px 53px 42px rgba(25, 25, 25, 0.04),
                142px 82px 46px rgba(25, 25, 25, 0);
}
.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-consent-header-text {
    font-size: 32px;
    line-height: 100%;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    color: #000000;
    margin: 0;
}
.cookie-consent-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.cookie-consent-text {
    font-size: 14px;
    line-height: 180%;
    font-family: Raleway, sans-serif;
    font-weight: 400;
    color: #000000;
}
.privacy-policy-link {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 180%;
    text-decoration: underline !important;
    color: #006FBD !important;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
}
.accept-button {
    cursor: pointer;
    background-color: rgba(0, 111, 189, 1);
    color: rgba(255, 255, 255, 1);
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    vertical-align: middle;
    padding: 20px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.cookie-preferences-link {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #006FBD;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
}

/*** Cookie Preferences Modal ***/
.cookie-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
}
.cookie-preferences-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 16px 24px;
    max-width: 752px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 6px 3px 14px rgba(25, 25, 25, 0.25),
                23px 13px 26px rgba(25, 25, 25, 0.21),
                51px 30px 36px rgba(25, 25, 25, 0.13),
                91px 53px 42px rgba(25, 25, 25, 0.04),
                142px 82px 46px rgba(25, 25, 25, 0);
    flex-direction: column;
    gap: 16px;
}
.cookie-preferences-modal[style*="display: block"],
.cookie-preferences-modal[style*="display:block"] {
    display: flex !important;
}
.cookie-preferences-modal::-webkit-scrollbar {
    width: 8px;
}
.cookie-preferences-modal::-webkit-scrollbar-track {
    background: #EFEFEF;
    border-radius: 4px;
}
.cookie-preferences-modal::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 4px;
}
.cookie-modal-title {
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.8;
    color: #000000;
    margin: 0;
}
.cookie-modal-description {
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin: 0;
}
.cookie-modal-description .privacy-policy-link {
    font-size: 16px;
}
.cookie-categories-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cookie-category-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: #EFEFEF;
    border-radius: 16px;
    padding: 16px 24px;
}
.cookie-toggle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.cookie-toggle-label {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.8;
    color: #000000;
    margin-top: 2px;
}
.cookie-category-text {
    flex: 1;
    min-width: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
}
.cookie-category-title {
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.8;
    margin: 0;
    color: #000000;
}
.cookie-category-desc {
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin: 0;
}

/* Pure CSS iOS-style toggle */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    cursor: pointer;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC;
    border-radius: 31px;
    transition: background-color 0.3s;
}
.cookie-toggle-slider::before {
    content: "";
    position: absolute;
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #006FBD;
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}
    .cookie-toggle input:focus + .cookie-toggle-slider {
        box-shadow: 0 0 0 3px rgba(0, 111, 189, 0.6);
    }
.cookie-toggle-disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}
.cookie-save-button {
    background-color: #006FBD;
    color: #FFFFFF;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
.cookie-cancel-link {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #006FBD;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
}

/* Visible keyboard focus indicators (accessibility) */
.accept-button:focus,
.cookie-preferences-link:focus,
.cookie-save-button:focus,
.cookie-cancel-link:focus,
.privacy-policy-link:focus {
    outline: 3px solid black;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/*** End Cookie Consent - INFRA-1124 ***/
