@import url("../shared/theme.tokens.css");

/* Cookie consent — DigitalMind login palette. Wrapper id is from FreePrivacyPolicy 4.1. */
#freeprivacypolicy-com---nb,
#freeprivacypolicy-com---cc-l-c,
.cc-cp {
    --cc-text: var(--dm-text);
    --cc-muted: var(--dm-muted);
    --cc-surface: var(--dm-surface);
    --cc-primary: var(--dm-primary);
    --cc-primary-dark: var(--dm-primary-dark);
    font-family: "Manrope", "Onest", "Inter", sans-serif !important;
}

#freeprivacypolicy-com---nb {
    z-index: 100000 !important;
    box-sizing: border-box !important;
}

#freeprivacypolicy-com---nb .cc-nb-main-container {
    background:
        radial-gradient(circle at top right, rgb(var(--dm-secondary-rgb) / 0.18), transparent 34%),
        linear-gradient(135deg, rgb(var(--dm-surface-rgb) / 0.96), rgb(var(--dm-surface-rgb) / 0.88)) !important;
    border: 1px solid rgb(var(--dm-text-rgb) / 0.08) !important;
    color: var(--cc-text) !important;
    box-shadow: 0 34px 94px rgb(70 75 130 / 0.14) !important;
    backdrop-filter: blur(14px);
    box-sizing: border-box !important;
}

#freeprivacypolicy-com---nb #cc-nb-title,
#freeprivacypolicy-com---nb .cc-nb-title {
    color: var(--cc-text) !important;
    font-family: "Inter", "Manrope", sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 8px !important;
}

#freeprivacypolicy-com---nb #cc-nb-text,
#freeprivacypolicy-com---nb .cc-nb-text {
    color: var(--cc-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

#freeprivacypolicy-com---nb #cc-nb-text a,
#freeprivacypolicy-com---nb .cc-nb-text a {
    color: var(--cc-primary-dark) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#freeprivacypolicy-com---nb .cc-nb-buttons-container {
    display: flex !important;
    gap: 10px !important;
    margin-top: 16px !important;
}

#freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
#freeprivacypolicy-com---cc-l-c .cc-cp-foot-save,
.cc-cp-foot-save {
    background: var(--cc-primary) !important;
    background-color: var(--cc-primary) !important;
    border: 1px solid transparent !important;
    border-radius: 17px !important;
    color: var(--dm-white) !important;
    font-family: inherit !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    box-shadow: 0 18px 34px rgb(var(--dm-primary-rgb) / 0.22) !important;
}

#freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree:hover,
#freeprivacypolicy-com---cc-l-c .cc-cp-foot-save:hover,
.cc-cp-foot-save:hover {
    background: var(--cc-primary-dark) !important;
    background-color: var(--cc-primary-dark) !important;
}

#freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
#freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid rgb(var(--dm-text-rgb) / 0.12) !important;
    border-radius: 17px !important;
    color: var(--cc-primary-dark) !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    box-shadow: none !important;
}

#freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep:hover,
#freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject:hover {
    border-color: rgb(var(--dm-primary-rgb) / 0.3) !important;
    color: var(--cc-primary) !important;
}

#freeprivacypolicy-com---cc-l-c,
.cc-cp {
    font-family: "Manrope", "Onest", "Inter", sans-serif !important;
}

/* Login / register desktop: card in the empty space to the right of the form. */
@media (min-width: 1180px) {
    body.auth-page #freeprivacypolicy-com---nb {
        position: fixed !important;
        top: 50% !important;
        left: calc(50% + 266px) !important;
        right: auto !important;
        bottom: auto !important;
        width: min(380px, calc(50vw - 290px)) !important;
        max-width: 380px !important;
        height: auto !important;
        max-height: calc(100vh - 120px) !important;
        transform: translateY(-50%) !important;
        overflow: auto !important;
        background: transparent !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-main-container {
        border-radius: 34px !important;
        padding: 26px 24px 22px !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-buttons-container {
        flex-direction: column !important;
        width: 100% !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
        width: 100% !important;
    }
}

/* Login / register tablet + mobile: compact card at the bottom. */
@media (max-width: 1179px) {
    body.auth-page.has-cookie-banner {
        padding-bottom: 240px;
    }

    body.auth-page #freeprivacypolicy-com---nb {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        transform: none !important;
        background: transparent !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-main-container {
        border-radius: 24px !important;
        padding: 14px 14px 12px !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-buttons-container {
        flex-direction: column !important;
        margin-top: 10px !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
        width: 100% !important;
        min-height: 44px !important;
    }
}

@media (max-width: 640px) {
    body.auth-page.has-cookie-banner {
        padding-bottom: 280px;
    }

    body.auth-page #freeprivacypolicy-com---nb #cc-nb-title,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-title {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    body.auth-page #freeprivacypolicy-com---nb #cc-nb-text,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-text {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        max-height: 4.4em !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 1179px) and (min-width: 641px) {
    body.auth-page.has-cookie-banner {
        padding-bottom: 180px;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-buttons-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    body.auth-page #freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
    body.auth-page #freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
        width: auto !important;
        min-width: 140px !important;
    }
}

/* Logged-in app: full-width bar at the bottom. */
body:not(.auth-page) #freeprivacypolicy-com---nb {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-main-container {
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 0 !important;
    padding: 16px 24px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 24px !important;
}

body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-title-container {
    flex: 0 1 auto;
    max-width: 220px;
}

body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-text-container {
    flex: 1 1 280px;
}

body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-buttons-container {
    flex-direction: row !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
    width: auto !important;
    min-width: 132px !important;
}

@media (max-width: 760px) {
    body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-main-container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 14px 12px !important;
        border-radius: 18px 18px 0 0 !important;
    }

    body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-buttons-container {
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-okagree.cc-nb-okagree.cc-nb-okagree,
    body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-changep.cc-nb-changep.cc-nb-changep,
    body:not(.auth-page) #freeprivacypolicy-com---nb .cc-nb-reject.cc-nb-reject.cc-nb-reject {
        width: 100% !important;
    }
}

.cookie-preferences-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--text-12, rgb(31 36 51 / 0.12));
    border-radius: 999px;
    background: var(--surface-74, rgb(255 255 255 / 0.74));
    color: var(--text, #1f2433);
    cursor: pointer;
    box-shadow: inset 0 1px 0 var(--white-45, rgb(255 255 255 / 0.45));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-preferences-trigger:hover,
.cookie-preferences-trigger:focus {
    transform: translateY(-1px);
    border-color: var(--primary-22, rgb(99 102 241 / 0.22));
    outline: none;
}

.cookie-preferences-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.dm-user-action-icon .cookie-preferences-icon {
    width: 15px;
    height: 15px;
}
