.hcc-banner,
.hcc-modal,
.hcc-banner *,
.hcc-modal * {
    box-sizing: border-box;
}

.hcc-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .18);
    font-size: 15px;
}

.hcc-banner[hidden],
.hcc-modal[hidden] {
    display: none !important;
}

.hcc-banner__content p {
    margin: 6px 0;
    line-height: 1.45;
}

.hcc-banner__content a {
    color: inherit;
    text-decoration: underline;
}

.hcc-settings-link,
.hcc-privacy-link,
.hiper-cookie-settings-link,
.hiper-cookie-privacy-link {
    color: inherit;
    text-decoration: none;
}

.hcc-settings-link:hover,
.hcc-privacy-link:hover,
.hiper-cookie-settings-link:hover,
.hiper-cookie-privacy-link:hover {
    text-decoration: underline;
}

.site-footer .hcc-settings-link,
.site-footer .hcc-privacy-link,
.site-footer .hiper-cookie-settings-link,
.site-footer .hiper-cookie-privacy-link,
footer .hcc-settings-link,
footer .hcc-privacy-link,
footer .hiper-cookie-settings-link,
footer .hiper-cookie-privacy-link {
    color: #ffffff;
    text-decoration: none;
}

.site-footer .hcc-settings-link:hover,
.site-footer .hcc-privacy-link:hover,
.site-footer .hiper-cookie-settings-link:hover,
.site-footer .hiper-cookie-privacy-link:hover,
footer .hcc-settings-link:hover,
footer .hcc-privacy-link:hover,
footer .hiper-cookie-settings-link:hover,
footer .hiper-cookie-privacy-link:hover {
    color: #2dbb8f;
    text-decoration: underline;
}

.hcc-footer-links,
.hiper-cookie-footer-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hcc-footer-separator {
    opacity: .7;
}

.hcc-banner__actions,
.hcc-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hcc-btn {
    border: 1px solid #111827;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
}

.hcc-btn--primary {
    background: #111827;
    color: #ffffff;
}

.hcc-btn--secondary {
    background: #ffffff;
    color: #111827;
}

.hcc-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .45);
}

.hcc-modal__box {
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    color: #1f2937;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.hcc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.hcc-modal__header h2 {
    margin: 0;
    font-size: 24px;
}

.hcc-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.hcc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.hcc-option p {
    margin: 5px 0 0;
    line-height: 1.45;
}

.hcc-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    min-width: 54px;
    height: 30px;
}

.hcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.hcc-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: .2s;
}

.hcc-switch span:before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: .2s;
}

.hcc-switch input:checked + span {
    background: #111827;
}

.hcc-switch input:checked + span:before {
    transform: translateX(24px);
}

@media (max-width: 720px) {
    .hcc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .hcc-banner__actions,
    .hcc-modal__actions {
        flex-direction: column;
    }

    .hcc-btn {
        width: 100%;
    }
}
