.itx-consent-root[hidden] {
    display: none !important;
}

.itx-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
}

.itx-consent__panel {
    position: relative;
    box-sizing: border-box;
    width: min(760px, 100%);
    padding: 18px 18px 16px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(17, 31, 53, 0.18);
    pointer-events: auto;
}

.itx-consent__title {
    margin: 0 36px 8px 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.itx-consent__body {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #3e4b5f;
}

.itx-consent__policy {
    display: inline-flex;
    margin: 0 0 10px;
    font-size: 13px;
    color: #0b69c7;
    text-decoration: underline;
}

.itx-consent__settings {
    display: grid;
    gap: 8px;
    margin: 12px 0 14px;
}

.itx-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.itx-consent__category-copy strong {
    display: block;
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.3;
}

.itx-consent__category-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #526176;
}

.itx-consent__toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
}

.itx-consent__toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.itx-consent__switch {
    position: absolute;
    inset: 0;
    background: #b8c3d3;
    border-radius: 999px;
    transition: background 160ms ease;
}

.itx-consent__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(24, 39, 75, 0.22);
    transition: transform 160ms ease;
}

.itx-consent__toggle input:checked + .itx-consent__switch {
    background: #1f8f61;
}

.itx-consent__toggle input:checked + .itx-consent__switch::after {
    transform: translateX(20px);
}

.itx-consent__toggle input:disabled + .itx-consent__switch {
    background: #7d8999;
}

.itx-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.itx-consent__button,
.itx-consent-settings-link {
    min-height: 36px;
    padding: 8px 14px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #b8c3d3;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.itx-consent__button:hover,
.itx-consent-settings-link:hover {
    border-color: #7b8ba2;
}

.itx-consent__button--primary {
    color: #ffffff;
    background: #155eef;
    border-color: #155eef;
}

.itx-consent__button--primary:hover {
    background: #0f4ac4;
    border-color: #0f4ac4;
}

.itx-consent__button--secondary {
    background: #f8fafc;
}

.itx-consent__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 18px;
}

[dir="rtl"] .itx-consent__title {
    margin-right: 0;
    margin-left: 36px;
}

[dir="rtl"] .itx-consent__close {
    right: auto;
    left: 12px;
}

[dir="rtl"] .itx-consent__switch::after {
    left: auto;
    right: 3px;
}

[dir="rtl"] .itx-consent__toggle input:checked + .itx-consent__switch::after {
    transform: translateX(-20px);
}

.itx-consent-cookie-declaration {
    width: 100%;
    border-collapse: collapse;
}

.itx-consent-cookie-declaration th,
.itx-consent-cookie-declaration td {
    padding: 10px;
    border: 1px solid #d9e1ec;
    text-align: left;
    vertical-align: top;
}

@media (max-width: 560px) {
    .itx-consent {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .itx-consent__panel {
        padding: 16px 14px 14px;
    }

    .itx-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .itx-consent__button {
        width: 100%;
    }
}
