/**
 * Cookie Consent Banner — UK Student Residences
 * Navy background, magenta accept, white outline reject.
 */

.uksr-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #000032;
    color: #ffffff;
    padding: 18px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* JS hides banner when consent cookie already exists */
.uksr-cookie-consent--hidden {
    display: none;
}

.uksr-cookie-consent--dismissed {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.uksr-cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.uksr-cookie-consent__text {
    margin: 0;
    margin-right: 160px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    flex: 1;
    min-width: 0;
}

.uksr-cookie-consent__text a {
    color: #ffffff;
    text-decoration: underline;
}

.uksr-cookie-consent__text a:hover {
    opacity: 0.85;
}

.uksr-cookie-consent__buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.uksr-cookie-consent__btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    line-height: 1;
    font-family: inherit;
}

.uksr-cookie-consent__btn:hover {
    opacity: 0.9;
}

.uksr-cookie-consent__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.uksr-cookie-consent__btn--accept {
    background-color: #b5007d;
    color: #ffffff;
    border: 2px solid #b5007d;
}

.uksr-cookie-consent__btn--accept:hover {
    background-color: #9a006a;
    border-color: #9a006a;
}

.uksr-cookie-consent__btn--reject {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.uksr-cookie-consent__btn--reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer "Cookie Settings" link */
.uksr-cookie-settings-link {
    cursor: pointer;
    text-decoration: underline;
}

/* Mobile: stack vertically at 640px */
@media (max-width: 640px) {
    .uksr-cookie-consent {
        padding: 16px 16px;
        padding-right: 16px;
    }

    .uksr-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .uksr-cookie-consent__text {
        font-size: 13px;
        text-align: center;
        margin-right: 0;
    }

    .uksr-cookie-consent__buttons {
        justify-content: center;
    }

    .uksr-cookie-consent__btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }
}
