.fib-cookie {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.fib-cookie.is-open {
    display: flex;
}

.fib-cookie__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.fib-cookie__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.fib-cookie__header-bar {
    flex: 0 0 auto;
    padding: 14px 18px;
    background: #e6e6e6;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #252525;
    border-bottom: 1px solid #d0d0d0;
}

.fib-cookie__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fib-cookie__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-bottom: 1px solid #e0e0e0;
}

.fib-cookie__row-control {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.fib-cookie__row-text {
    font-size: 14px;
    line-height: 1.45;
    color: #252525;
}

.fib-cookie__toggles--main {
    position: relative;
}

.fib-cookie__toggles--main::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 48px;
    bottom: 24px;
    width: 2px;
    background: #6fbf4a;
    pointer-events: none;
}

.fib-cookie__toggles--ads {
    position: relative;
}

.fib-cookie__toggles--ads::before {
    content: "";
    position: absolute;
    left: 43px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #d9534f;
    pointer-events: none;
}

.fib-cookie__toggles--ads.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.fib-cookie__required-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6fbf4a;
    display: block;
}

.fib-cookie__switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.fib-cookie__switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.fib-cookie__switch-ui {
    position: absolute;
    inset: 0;
    background: #d9534f;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.fib-cookie__switch-ui::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.fib-cookie__switch input:checked + .fib-cookie__switch-ui {
    background: #6fbf4a;
}

.fib-cookie__switch input:checked + .fib-cookie__switch-ui::before {
    transform: translateX(20px);
}

.fib-cookie__switch--green input:not(:checked) + .fib-cookie__switch-ui {
    background: #c5c5c5;
}

.fib-cookie__accordion {
    border-bottom: 1px solid #e0e0e0;
}

.fib-cookie__accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 40px 14px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #252525;
    background: #fafafa;
    position: relative;
}

.fib-cookie__accordion summary::-webkit-details-marker {
    display: none;
}

.fib-cookie__accordion summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease;
}

.fib-cookie__accordion[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.fib-cookie__accordion-body {
    padding: 12px 18px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #444;
    background: #fff;
}

.fib-cookie__footer {
    flex: 0 0 auto;
    padding: 20px 18px 24px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.fib-cookie__validate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 2px;
    background: #6fbf4a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.fib-cookie__validate:hover {
    background: #63ad42;
}

.fib-cookie__validate svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.fib-cookie-open {
    overflow: hidden;
}
