.footer-cookie-settings {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: #97a4ba;
    font: inherit;
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}

.home-footer .footer-cookie-settings:hover,
.home-footer .footer-cookie-settings:focus-visible {
    color: #fff;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible,
.uapply-privacy-links a:hover,
.uapply-privacy-links a:focus-visible,
.uapply-privacy-links button:hover,
.uapply-privacy-links button:focus-visible {
    color: #6c5ce7;
    text-decoration: underline;
}

.uapply-cookie-banner,
.uapply-cookie-modal,
.uapply-cookie-banner *,
.uapply-cookie-modal * {
    box-sizing: border-box;
}

.uapply-cookie-banner[hidden],
.uapply-cookie-modal[hidden] {
    display: none !important;
}

.uapply-cookie-banner {
    position: fixed;
    z-index: 10020;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid rgba(108, 92, 231, .18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(29, 31, 55, .2);
    color: #26243a;
}

.uapply-cookie-copy {
    min-width: 0;
}

.uapply-cookie-copy strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.5;
}

.uapply-cookie-copy p,
.uapply-cookie-copy a,
.uapply-cookie-option p,
.uapply-cookie-retention,
.uapply-cookie-feedback,
.uapply-cookie-detail-link {
    font-size: 13px;
    line-height: 1.7;
}

.uapply-cookie-copy p {
    margin: 0;
    color: #5b5870;
}

.uapply-cookie-copy a,
.uapply-cookie-detail-link {
    display: inline-block;
    margin-top: 5px;
    color: #5946cf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.uapply-cookie-actions,
.uapply-cookie-modal-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.uapply-cookie-choice {
    min-width: 148px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #6552d9;
    border-radius: 9px;
    background: #fff;
    color: #4c3cba;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.uapply-cookie-choice.is-primary {
    background: #6552d9;
    color: #fff;
}

.uapply-cookie-choice:hover {
    box-shadow: 0 5px 16px rgba(101, 82, 217, .2);
    transform: translateY(-1px);
}

.uapply-cookie-choice:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.uapply-cookie-choice:focus-visible,
.uapply-cookie-modal-close:focus-visible,
.footer-cookie-settings:focus-visible,
.uapply-privacy-links a:focus-visible,
.uapply-privacy-links button:focus-visible,
.uapply-cookie-copy a:focus-visible,
.uapply-cookie-detail-link:focus-visible {
    outline: 3px solid rgba(65, 135, 255, .42);
    outline-offset: 3px;
}

.uapply-cookie-modal {
    position: fixed;
    z-index: 10030;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(22, 24, 40, .58);
}

.uapply-cookie-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(15, 17, 35, .3);
    color: #26243a;
}

.uapply-cookie-modal-card h2 {
    margin: 4px 44px 8px 0;
    font-size: 25px;
    line-height: 1.35;
}

.uapply-cookie-modal-card > p {
    margin: 0 0 18px;
    color: #625e76;
    font-size: 14px;
    line-height: 1.7;
}

.uapply-cookie-eyebrow {
    color: #6c5ce7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
}

.uapply-cookie-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1eff9;
    color: #514d68;
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
}

.uapply-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #e4e1f2;
    border-radius: 12px;
    background: #faf9fe;
}

.uapply-cookie-option strong {
    font-size: 15px;
    line-height: 1.5;
}

.uapply-cookie-option p {
    margin: 4px 0 0;
    color: #666278;
}

.uapply-cookie-option > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ebe8fa;
    color: #5848bd;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.uapply-cookie-retention {
    margin: 14px 0 0 !important;
    padding: 12px 14px;
    border-left: 3px solid #7c6be0;
    background: #f6f4ff;
}

.uapply-cookie-feedback {
    min-height: 21px;
    margin: 10px 0 0 !important;
    color: #4f46a5 !important;
}

.uapply-cookie-modal-actions {
    margin-top: 14px;
}

.uapply-cookie-detail-link {
    margin-top: 13px;
}

.uapply-privacy-links {
    position: fixed;
    z-index: 10010;
    right: 16px;
    bottom: 12px;
    display: flex;
    gap: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(101, 82, 217, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 20px rgba(29, 31, 55, .1);
}

.uapply-privacy-links a,
.uapply-privacy-links button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #5e5a72;
    font: inherit;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 760px) {
    .uapply-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: block;
        max-height: calc(100vh - 20px);
        overflow: auto;
        padding: 17px;
        border-radius: 13px;
    }

    .uapply-cookie-actions,
    .uapply-cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .uapply-cookie-choice {
        width: 100%;
        min-width: 0;
    }

    .uapply-cookie-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .uapply-cookie-modal-card {
        max-height: calc(100vh - 20px);
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .uapply-cookie-option {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .uapply-privacy-links {
        right: 10px;
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uapply-cookie-choice {
        transition: none;
    }
}
