.valm-cc[hidden],
.valm-cc__preferences[hidden],
.valm-cc-manage[hidden] {
    display: none !important;
}

.valm-cc {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    color: #0b254a;
    font-family: "Nunito Regular", "Nunito", system-ui, sans-serif;
}

.valm-cc__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 88%, rgba(219, 68, 163, 0.24), transparent 30%),
        rgba(7, 18, 43, 0.46);
}

.valm-cc__panel {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(219, 68, 163, 0.16);
    border-top: 4px solid #db44a3;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 248, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(241, 247, 255, 0.96) 100%);
    box-shadow: 0 24px 70px rgba(11, 37, 74, 0.28);
}

.valm-cc__eyebrow {
    margin: 0 0 6px;
    color: #db44a3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.valm-cc__title,
.valm-cc__subtitle {
    margin: 0;
    color: #0b254a;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.valm-cc__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.valm-cc__title-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(219, 68, 163, 0.18));
}

.valm-cc__text {
    max-width: 760px;
    margin: 12px 0 0;
    color: #34445c;
    line-height: 1.55;
}

.valm-cc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.valm-cc__actions--end {
    justify-content: flex-end;
}

.valm-cc__button {
    min-height: 44px;
    border: 1px solid #db44a3;
    border-radius: 999px;
    padding: 10px 18px;
    font: 800 0.92rem/1.1 "Montserrat", system-ui, sans-serif;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.valm-cc__button:hover,
.valm-cc__button:focus-visible,
.valm-cc-manage:hover,
.valm-cc-manage:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(219, 68, 163, 0.22);
}

.valm-cc__button--primary {
    background: linear-gradient(135deg, #db44a3 0%, #7d4cff 100%);
    color: #ffffff;
}

.valm-cc__button--ghost {
    background: #ffffff;
    color: #0b254a;
}

.valm-cc__button--link {
    border-color: transparent;
    background: transparent;
    color: #7d2ed6;
    text-decoration: underline;
    box-shadow: none;
}

.valm-cc__policy {
    display: inline-block;
    margin-top: 14px;
    color: #7d2ed6;
    font-weight: 800;
    text-decoration: none;
}

.valm-cc__policy:hover,
.valm-cc__policy:focus-visible {
    text-decoration: underline;
}

.valm-cc__pref-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.valm-cc__icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(11, 37, 74, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #0b254a;
    font-weight: 800;
    cursor: pointer;
}

.valm-cc__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(11, 37, 74, 0.1);
}

.valm-cc__category strong,
.valm-cc__category small {
    display: block;
}

.valm-cc__category strong {
    color: #0b254a;
}

.valm-cc__category small {
    margin-top: 4px;
    color: #5d6d86;
    line-height: 1.4;
}

.valm-cc__category input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #db44a3;
}

.valm-cc__category--locked {
    opacity: 0.78;
}

.valm-cc__declaration {
    margin-top: 8px;
    padding: 14px;
    border: 1px solid rgba(125, 76, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.valm-cc__declaration summary {
    cursor: pointer;
    font-weight: 800;
}

.valm-cc__declaration p {
    margin: 10px 0 0;
    color: #34445c;
    line-height: 1.55;
}

.valm-cc-manage {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147482999;
    border: 1px solid rgba(219, 68, 163, 0.28);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.94);
    color: #0b254a;
    font: 800 0.78rem/1.1 "Montserrat", system-ui, sans-serif;
    box-shadow: 0 10px 28px rgba(11, 37, 74, 0.14);
    cursor: pointer;
}

.valm-cc-manage--footer {
    position: static;
    right: auto;
    bottom: auto;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    font: 400 0.97rem/1.55 "Nunito Regular", sans-serif;
    text-align: left;
}

.valm-cc-manage--footer:hover,
.valm-cc-manage--footer:focus-visible {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .valm-cc__panel:has(.valm-cc__preferences:not([hidden])) {
        grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    }
}

@media (max-width: 575px) {
    .valm-cc {
        padding: 8px;
    }

    .valm-cc__panel {
        max-height: calc(100vh - 16px);
        padding: 16px;
        border-radius: 16px;
    }

    .valm-cc__button {
        width: 100%;
    }

    .valm-cc__title {
        align-items: flex-start;
    }

    .valm-cc__title-icon {
        width: 36px;
        height: 36px;
    }

    .valm-cc-manage {
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
    }
}
