.hdcc-root [hidden] { display: none !important; }
.hdcc-root *, .hdcc-root *::before, .hdcc-root *::after { box-sizing: border-box; }
.hdcc-modal-open { overflow: hidden !important; }

.hdcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    padding: 16px;
    color: var(--hdcc-text);
    background: var(--hdcc-bg);
    border-top: 4px solid var(--hdcc-primary);
    box-shadow: 0 -8px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .18s ease, transform .18s ease;
    font-family: inherit;
}
.hdcc-banner.is-visible { opacity: 1; transform: translateY(0); }
.hdcc-banner__content {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}
.hdcc-banner__text h2 {
    margin: 0 0 6px;
    color: var(--hdcc-dark);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
}
.hdcc-banner__text p { margin: 0; font-size: 14px; line-height: 1.55; }
.hdcc-banner__text a, .hdcc-modal a { color: var(--hdcc-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hdcc-banner__actions, .hdcc-modal__footer { display: flex; align-items: stretch; gap: 10px; }

.hdcc-btn {
    min-width: 132px;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid var(--hdcc-dark);
    border-radius: calc(var(--hdcc-radius) * .65);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.hdcc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.13); }
.hdcc-btn:focus-visible, .hdcc-modal__close:focus-visible, .hdcc-category__toggle:focus-visible, .hdcc-switch input:focus-visible + .hdcc-switch__visual {
    outline: 3px solid rgba(246, 196, 0, .55);
    outline-offset: 2px;
}
.hdcc-btn--accept { color: var(--hdcc-dark); background: var(--hdcc-primary); }
.hdcc-btn--reject { color: #fff; background: var(--hdcc-dark); }
.hdcc-btn--configure { color: var(--hdcc-dark); background: var(--hdcc-bg); }

.hdcc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    opacity: 0;
    transition: opacity .18s ease;
    font-family: inherit;
}
.hdcc-modal.is-visible { opacity: 1; }
.hdcc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.hdcc-modal__dialog {
    position: relative;
    width: min(920px, calc(100% - 28px));
    max-height: min(88vh, 820px);
    margin: 6vh auto;
    overflow: auto;
    color: var(--hdcc-text);
    background: var(--hdcc-bg);
    border-radius: var(--hdcc-radius);
    box-shadow: 0 20px 65px rgba(0,0,0,.35);
    transform: translateY(12px) scale(.99);
    transition: transform .18s ease;
}
.hdcc-modal.is-visible .hdcc-modal__dialog { transform: translateY(0) scale(1); }
.hdcc-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--hdcc-dark);
    background: #f0f0f0;
    font-size: 28px;
    line-height: 38px;
    cursor: pointer;
}
.hdcc-modal__header { padding: 28px 68px 20px 28px; border-bottom: 1px solid #e6e6e6; }
.hdcc-modal__header h2 { margin: 0 0 10px; color: var(--hdcc-dark); font-size: 26px; }
.hdcc-modal__header p { margin: 6px 0; line-height: 1.55; }
.hdcc-categories { padding: 18px 28px; }
.hdcc-category { border: 1px solid #dadde1; border-radius: calc(var(--hdcc-radius) * .7); margin-bottom: 12px; overflow: hidden; }
.hdcc-category__summary { min-height: 64px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #fafafa; }
.hdcc-category__toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: 0;
    color: var(--hdcc-dark);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hdcc-category__toggle > span { width: 18px; font-size: 20px; font-weight: 700; text-align: center; }
.hdcc-category__toggle strong { font-size: 15px; }
.hdcc-category__details { padding: 16px; border-top: 1px solid #e5e7eb; }
.hdcc-category__details > p { margin: 0 0 14px; line-height: 1.55; }

.hdcc-switch { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 176px; cursor: pointer; }
.hdcc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hdcc-switch__visual {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #a7adb5;
    transition: background .15s ease;
}
.hdcc-switch__visual::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.hdcc-switch input:checked + .hdcc-switch__visual { background: var(--hdcc-primary); }
.hdcc-switch input:checked + .hdcc-switch__visual::after { transform: translateX(20px); }
.hdcc-switch input:disabled + .hdcc-switch__visual { opacity: .75; }
.hdcc-switch__status { min-width: 88px; color: #3d454d; font-size: 12px; font-weight: 700; }

.hdcc-table-wrap { width: 100%; overflow-x: auto; }
.hdcc-cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hdcc-cookie-table th, .hdcc-cookie-table td { padding: 9px 10px; border: 1px solid #d9dde2; text-align: left; vertical-align: top; }
.hdcc-cookie-table th { color: var(--hdcc-dark); background: #f1f3f5; }
.hdcc-modal__footer { position: sticky; bottom: 0; justify-content: flex-end; padding: 18px 28px; background: var(--hdcc-bg); border-top: 1px solid #e5e7eb; box-shadow: 0 -8px 18px rgba(255,255,255,.92); }
.hdcc-status { position: fixed; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hdcc-open-button, .hdcc-elementor-trigger.hdcc-open-button {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid var(--hdcc-dark, #111);
    border-radius: 7px;
    color: var(--hdcc-dark, #111);
    background: var(--hdcc-primary, #f6c400);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.hdcc-open-link { cursor: pointer; }

.hdcc-whatsapp-link {
    position: fixed;
    bottom: 22px;
    z-index: 2147482990;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 8px 15px 8px 9px;
    border-radius: 999px;
    color: #fff !important;
    background: #20b858;
    box-shadow: 0 7px 22px rgba(0,0,0,.2);
    font: inherit;
    font-weight: 800;
    text-decoration: none !important;
}
.hdcc-whatsapp-link--right { right: 20px; }
.hdcc-whatsapp-link--left { left: 20px; }
.hdcc-whatsapp-link__icon { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; font-size: 18px; }
.hdcc-whatsapp-link__text { font-size: 13px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 880px) {
    .hdcc-banner__content { grid-template-columns: 1fr; gap: 14px; }
    .hdcc-banner__actions { width: 100%; }
    .hdcc-banner__actions .hdcc-btn { flex: 1; min-width: 0; }
}

@media (max-width: 640px) {
    .hdcc-banner { padding: 14px 12px; }
    .hdcc-banner__actions, .hdcc-modal__footer { display: grid; grid-template-columns: 1fr 1fr; }
    .hdcc-banner__actions .hdcc-btn--configure, .hdcc-modal__footer .hdcc-btn--configure { grid-column: 1 / -1; grid-row: 2; }
    .hdcc-btn { width: 100%; min-width: 0; }
    .hdcc-modal__dialog { width: calc(100% - 18px); max-height: 94vh; margin: 3vh auto; }
    .hdcc-modal__header { padding: 22px 56px 16px 18px; }
    .hdcc-modal__header h2 { font-size: 22px; }
    .hdcc-categories { padding: 12px; }
    .hdcc-category__summary { align-items: flex-start; flex-direction: column; gap: 5px; }
    .hdcc-switch { width: 100%; justify-content: flex-start; padding-left: 27px; }
    .hdcc-modal__footer { padding: 14px 12px; }
    .hdcc-whatsapp-link__text { display: none; }
    .hdcc-whatsapp-link { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .hdcc-banner, .hdcc-modal, .hdcc-modal__dialog, .hdcc-btn, .hdcc-switch__visual, .hdcc-switch__visual::after { transition: none !important; }
}
