.jp-cookie-consent[hidden],
.jp-cookie-settings[hidden] {
    display: none !important;
}

.jp-cookie-consent {
    box-sizing: border-box;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jp-cookie-consent *,
.jp-cookie-consent *::before,
.jp-cookie-consent *::after {
    box-sizing: border-box;
}

.jp-cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    color: #ffffff;
}

.jp-cookie-consent__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    width: min(1120px, 100%);
    margin: 0 auto;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: var(--jp-radius, 28px);
    background:
        linear-gradient(135deg, rgba(8, 17, 31, 0.97), rgba(15, 27, 45, 0.96)),
        rgba(8, 17, 31, 0.96);
    box-shadow: 0 30px 80px rgba(3, 10, 20, 0.46);
    backdrop-filter: blur(18px);
}

.jp-cookie-consent__panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--jp-primary, #3be3c2), var(--jp-secondary, #7dd3fc));
}

.jp-cookie-consent__copy {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: start;
}

.jp-cookie-consent__eyebrow {
    color: var(--jp-primary, #3be3c2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jp-cookie-consent h2,
.jp-cookie-settings h3 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: "Sora", "Manrope", system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
}

.jp-cookie-consent p {
    max-width: 780px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.65;
}

.jp-cookie-consent a {
    color: var(--jp-primary, #3be3c2);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jp-cookie-consent__actions,
.jp-cookie-settings__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.jp-cookie-consent__actions {
    align-self: center;
}

button.jp-cookie-button,
.jp-cookie-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button.jp-cookie-button,
.jp-cookie-button {
    min-width: 112px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

button.jp-cookie-button:hover,
.jp-cookie-button:hover {
    transform: translateY(-1px);
}

button.jp-cookie-button:focus-visible,
.jp-cookie-button:focus-visible,
.jp-cookie-option input:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.34);
    outline-offset: 3px;
}

.jp-cookie-button--choice {
    border-color: transparent;
    background: linear-gradient(135deg, var(--jp-primary, #3be3c2), var(--jp-secondary, #7dd3fc));
    color: #021220;
    box-shadow: 0 16px 36px rgba(59, 227, 194, 0.2);
}

.jp-cookie-button--choice:hover {
    background: linear-gradient(135deg, var(--jp-primary, #3be3c2), var(--jp-secondary, #7dd3fc));
    color: #021220;
    box-shadow: 0 18px 42px rgba(59, 227, 194, 0.28);
}

.jp-cookie-button--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.jp-cookie-button--secondary:hover {
    border-color: rgba(59, 227, 194, 0.62);
    background: rgba(59, 227, 194, 0.12);
    color: #ffffff;
}

.jp-cookie-settings {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.jp-cookie-settings__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.jp-cookie-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.84);
    cursor: pointer;
}

.jp-cookie-option--locked {
    cursor: default;
}

.jp-cookie-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--jp-primary-deep, #11b89a);
}

.jp-cookie-option strong,
.jp-cookie-option small {
    display: block;
}

.jp-cookie-option strong {
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.3;
}

.jp-cookie-option small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    line-height: 1.55;
}

button.jp-cookie-open-settings.jp-button {
    margin-top: 12px;
    border: 1px solid rgba(9, 20, 34, 0.12);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 920px) {
    .jp-cookie-consent__panel {
        grid-template-columns: 1fr;
    }

    .jp-cookie-consent__actions,
    .jp-cookie-settings__actions {
        justify-content: stretch;
    }

    .jp-cookie-consent__actions .jp-cookie-button,
    .jp-cookie-settings__actions .jp-cookie-button {
        flex: 1 1 0;
    }

    .jp-cookie-settings__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .jp-cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .jp-cookie-consent__panel {
        max-height: calc(100vh - 24px);
        overflow: auto;
        padding: 18px;
    }

    .jp-cookie-settings {
        gap: 12px;
        padding-top: 14px;
    }

    .jp-cookie-settings__grid {
        gap: 8px;
    }

    .jp-cookie-option {
        padding: 12px;
    }

    .jp-cookie-option small {
        display: none;
    }

    .jp-cookie-consent__actions,
    .jp-cookie-settings__actions {
        flex-direction: column;
    }

    .jp-cookie-consent__actions .jp-cookie-button,
    .jp-cookie-settings__actions .jp-cookie-button {
        width: 100%;
    }

}
