.df-cookie-consent [x-cloak] {
    display: none !important;
}

.df-cookie-consent {
    position: relative;
    z-index: 90;
}

.df-cookie-consent-locked,
.df-cookie-consent-locked body {
    overflow: hidden;
}

.df-cookie-consent__overlay {
    background: rgba(15, 23, 42, 0.45);
    inset: 0;
    position: fixed;
    z-index: 91;
}

.df-cookie-consent__banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    z-index: 92;
}

.df-cookie-consent--top .df-cookie-consent__banner {
    top: 1rem;
}

.df-cookie-consent--center .df-cookie-consent__banner {
    top: 50%;
    transform: translateY(-50%);
}

.df-cookie-consent--bottom .df-cookie-consent__banner {
    bottom: 1rem;
}

.df-cookie-consent__content,
.df-cookie-consent__dialog-content {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.df-cookie-consent__content {
    gap: 1rem;
    margin: 0 auto;
    max-width: 52rem;
    padding: 1.5rem;
}

.df-cookie-consent__message {
    font-size: 0.95rem;
    line-height: 1.7;
}

.df-cookie-consent__message p:last-child {
    margin-bottom: 0;
}

.df-cookie-consent__message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.df-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.df-cookie-consent__actions--modal {
    margin-top: 1.5rem;
}

.df-cookie-consent__button {
    appearance: none;
    background: var(--df-cookie-button-color, var(--color-primary, #82439e));
    border: 1px solid var(--df-cookie-button-color, var(--color-primary, #82439e));
    border-radius: 999px;
    color: var(--color-on-primary, #ffffff);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.875rem;
    padding: 0.75rem 1.25rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.df-cookie-consent__button:hover,
.df-cookie-consent__button:focus-visible {
    opacity: 0.92;
}

.df-cookie-consent__button:focus-visible,
.df-cookie-consent__close:focus-visible,
.df-cookie-consent__option input:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.df-cookie-consent__button--secondary {
    background: transparent;
    color: var(--df-cookie-button-color, var(--color-primary, #82439e));
}

.df-cookie-consent__modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    z-index: 93;
}

.df-cookie-consent__dialog {
    max-height: 100%;
    max-width: 42rem;
    overflow: auto;
    position: relative;
    width: 100%;
}

.df-cookie-consent__dialog-content {
    padding: 2rem;
}

.df-cookie-consent__close {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    height: 2.5rem;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.5rem;
}

.df-cookie-consent__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.df-cookie-consent__intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.df-cookie-consent__options {
    display: grid;
    gap: 0.875rem;
}

.df-cookie-consent__option {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.125rem;
}

.df-cookie-consent__option--locked {
    background: #f1f5f9;
}

.df-cookie-consent__option-copy {
    display: grid;
    gap: 0.25rem;
}

.df-cookie-consent__option-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.df-cookie-consent__option-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.86;
}

.df-cookie-consent__option input[type='checkbox'] {
    accent-color: var(--df-cookie-button-color, #111827);
    flex: 0 0 auto;
    height: 1.125rem;
    width: 1.125rem;
}

@media (max-width: 767px) {
    .df-cookie-consent__banner {
        left: 0.75rem;
        right: 0.75rem;
    }

    .df-cookie-consent__dialog-content {
        padding: 1.25rem;
    }

    .df-cookie-consent__option {
        align-items: flex-start;
        flex-direction: column;
    }

    .df-cookie-consent__actions,
    .df-cookie-consent__button {
        width: 100%;
    }
}
