/* =========================================================
   DUGRO COOKIE CONSENT AND PREFERENCE PANEL
========================================================= */
body.cookie-settings-open {
    overflow: hidden;
}

.tc-privacy-banner {
    z-index: 999998;
}

.tc-privacy-text,
.tc-privacy-button {
    font-size: var(--information-copy-font-size);
}

.tc-privacy-text {
    line-height: 1.6;
}

@media (min-width: 768px) {
    .tc-privacy-button {
        min-width: 130px;
        min-height: 42px;
        padding: 10px 14px;
    }
}

@media (max-width: 1024px) {
    .tc-privacy-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 18px;
    }

    .tc-privacy-text {
        max-width: none;
    }

    .tc-privacy-block-button {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .tc-privacy-block-button .tc-privacy-button {
        width: 100%;
    }

    .tc-privacy-block-button #footer_tc_privacy_button_3 {
        order: 1;
    }

    .tc-privacy-block-button #footer_tc_privacy_button {
        order: 2;
    }

    .tc-privacy-block-button #footer_tc_privacy_button_2 {
        order: 3;
    }
}

.tc-privacy-block-button .tc-privacy-button {
    white-space: normal;
}

.cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: start center;
    padding: 30px 24px;
    font-family: "VAG Rounded Std", "Varela Round", Arial, sans-serif;
}

.cookie-settings-modal[hidden] {
    display: none;
}

.cookie-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 44, 62, 0.58);
}

.cookie-settings-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(600px, calc(100vw - 48px));
    max-height: min(calc(100vh - 60px), 720px);
    overflow: hidden;
    border-radius: 5px;
    background: #ffffff;
    color: #5c7182;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.cookie-settings-panel:focus {
    outline: none;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 84px;
    padding: 18px 22px;
    border-bottom: 1px solid #e1e5e8;
}

.cookie-settings-title {
    margin: 0;
    color: #5c7182;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.cookie-settings-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #718695;
    font: 700 25px/1 Arial, sans-serif;
    cursor: pointer;
}

.cookie-settings-close:hover,
.cookie-settings-close:focus-visible {
    color: #a62c49;
}

.cookie-settings-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 35px 16px 24px;
}

.cookie-purpose + .cookie-purpose {
    margin-top: 9px;
}

.cookie-purpose-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #ced8de;
    border-radius: 3px;
    background: #ffffff;
    color: #5c7182;
    font: 700 15px/1.25 "VAG Rounded Std", "Varela Round", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.cookie-purpose-toggle[aria-expanded="true"] {
    border-color: #a62c49;
    background: #a62c49;
    color: #ffffff;
}

.cookie-purpose-symbol {
    flex: 0 0 28px;
    font: 700 21px/1 Arial, sans-serif;
}

.cookie-purpose-content {
    padding: 16px 16px 18px;
    border: 1px solid #d6dee3;
    border-top: 0;
    background: #ffffff;
}

.cookie-purpose-content[hidden] {
    display: none;
}

.cookie-purpose-description {
    margin: 0;
    color: #4b5f6d;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-purpose-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.cookie-switch-status {
    min-width: 72px;
    color: #5c7182;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 46px;
    height: 24px;
}

.cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.cookie-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #a7b1b8;
    cursor: pointer;
    transition: background 0.18s ease;
}

.cookie-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
    transition: transform 0.18s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: #a62c49;
}

.cookie-switch input:checked + .cookie-switch-track::after {
    transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
    outline: 3px solid rgba(166, 44, 73, 0.3);
    outline-offset: 2px;
}

.cookie-switch input:disabled + .cookie-switch-track {
    cursor: not-allowed;
    opacity: 0.68;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 0 auto;
    padding: 16px;
    background: #eef1f3;
}

.cookie-settings-action {
    min-width: 60px;
    min-height: 35px;
    padding: 8px 14px;
    border: 0;
    border-radius: 3px;
    background: #a62c49;
    color: #ffffff;
    font: 400 14px/1.2 "VAG Rounded Std", "Varela Round", Arial, sans-serif;
    cursor: pointer;
}

.cookie-settings-action:hover,
.cookie-settings-action:focus-visible {
    background: #84233b;
}

.cookie-settings-close:focus-visible,
.cookie-purpose-toggle:focus-visible,
.cookie-settings-action:focus-visible,
.tc-privacy-button:focus-visible {
    outline: 3px solid rgba(166, 44, 73, 0.32);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .cookie-settings-modal {
        align-items: center;
        padding: 14px;
    }

    .cookie-settings-panel {
        width: calc(100vw - 28px);
        max-height: calc(100dvh - 28px);
    }

    .cookie-settings-header {
        min-height: 68px;
        padding: 14px 16px;
    }

    .cookie-settings-title {
        font-size: 24px;
    }

    .cookie-settings-body {
        padding: 20px 12px 16px;
    }

    .cookie-purpose-toggle {
        min-height: 46px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .cookie-purpose-symbol {
        flex-basis: 24px;
    }

    .cookie-purpose-content {
        padding: 13px;
    }

    .cookie-purpose-description {
        font-size: 12px;
    }

    .cookie-settings-footer {
        padding: 12px;
    }

    .cookie-settings-action {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 7px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .tc-privacy-block-button {
        grid-template-columns: 1fr;
    }

    .cookie-settings-title {
        font-size: 21px;
    }
}
