/* GDPR modal */
.df-gdpr-link,
.df-footer-link-button,
.df-cookie-link-button {
    border: none;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.df-gdpr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.df-gdpr-modal.is-open {
    display: block;
}

.df-gdpr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.df-gdpr-modal__content {
    position: relative;
    width: calc(100% - 32px);
    max-width: 860px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 5vh auto;
    padding: 32px;
    background: #fff;
    color: #111;
    border-radius: 18px;
    z-index: 1;
    box-sizing: border-box;
}

.df-gdpr-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.df-gdpr-modal__body h3 {
    margin-top: 24px;
}

.df-gdpr-modal__body p,
.df-gdpr-modal__body li {
    line-height: 1.55;
}

.df-gdpr-modal__body ul {
    padding-left: 22px;
}

/* Cookie banner */
.df-cookie-banner {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    color: #111;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;
    box-sizing: border-box;
}

.df-cookie-banner.is-visible {
    display: block;
}

.df-cookie-banner__title {
    margin: 0 0 8px;
    font-size: 22px;
}

.df-cookie-banner__text {
    margin: 0 0 18px;
    line-height: 1.5;
}

.df-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.df-cookie-banner__button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.df-cookie-banner__button--primary {
    background: #111;
    color: #fff;
}

.df-cookie-banner__button--secondary {
    background: #e9e9e9;
    color: #111;
}

.df-cookie-banner__button--link {
    background: transparent;
    color: #111;
    text-decoration: underline;
    padding-left: 4px;
    padding-right: 4px;
}

/* Cookie settings modal */
.df-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
}

.df-cookie-modal.is-open {
    display: block;
}

.df-cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.df-cookie-modal__content {
    position: relative;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 6vh auto;
    padding: 32px;
    background: #fff;
    color: #111;
    border-radius: 18px;
    z-index: 1;
    box-sizing: border-box;
}

.df-cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.df-cookie-option {
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.df-cookie-option__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.df-cookie-option__title {
    margin: 0;
    font-size: 18px;
}

.df-cookie-option__text {
    margin: 8px 0 0;
    line-height: 1.5;
}

.df-cookie-switch {
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

.df-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.df-footer__legal {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    color: inherit;
}

@media (max-width: 640px) {
    .df-gdpr-modal__content,
    .df-cookie-modal__content {
        padding: 24px 18px;
        margin-top: 4vh;
    }

    .df-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }

    .df-cookie-banner__actions,
    .df-cookie-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .df-cookie-banner__button {
        width: 100%;
    }
}
