.wc-root,
.wc-root * {
    box-sizing: border-box;
}

.wc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 24, 32, .68);
    font-family: Arial, Helvetica, sans-serif;
}

.wc-backdrop.wc-is-open {
    display: flex;
}

.wc-dialog {
    position: relative;
    width: min(730px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #202833;
}

.wc-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wc-cookie-icon {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: color-mix(in srgb, var(--wc-accent) 14%, white);
    color: var(--wc-accent);
}

.wc-cookie-icon svg,
.wc-floating svg {
    width: 29px;
    height: 29px;
}

.wc-title {
    margin: 0 42px 6px 0;
    font-size: 27px;
    line-height: 1.2;
}

.wc-intro {
    margin: 0;
    color: #5d6975;
    line-height: 1.5;
}

.wc-close {
    position: absolute;
    top: 16px;
    right: 20px;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: #66717c;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.wc-options {
    margin: 22px 0 16px;
    overflow: hidden;
    border: 1px solid #dbe2e8;
    border-radius: 16px;
}

.wc-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 15px 17px;
    border-bottom: 1px solid #e4e9ed;
    cursor: pointer;
}

.wc-row:last-child {
    border-bottom: 0;
}

.wc-row strong {
    display: block;
    margin-bottom: 3px;
}

.wc-row small {
    display: block;
    color: #63707c;
    line-height: 1.35;
}

.wc-row input {
    width: 22px;
    height: 22px;
    accent-color: var(--wc-accent);
}

.wc-row--disabled {
    cursor: default;
}

.wc-policy-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 2px 0 18px;
}

.wc-policy-links a {
    color: var(--wc-accent);
    text-decoration: underline;
}

.wc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.wc-btn {
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid var(--wc-accent);
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}

.wc-btn--reject {
    border-color: #eef2f4;
    background: #eef2f4;
    color: #26313a;
}

.wc-btn--save {
    background: #fff;
    color: var(--wc-accent);
}

.wc-btn--accept {
    background: var(--wc-accent);
    color: #fff;
}

.wc-floating {
    position: fixed;
    bottom: 18px;
    z-index: 2147483500;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--wc-accent) 35%, white);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    color: var(--wc-accent);
    cursor: pointer;
}

.wc-floating--left {
    left: var(--wc-offset);
}

.wc-floating--right {
    right: var(--wc-offset);
}

body.wc-lock {
    overflow: hidden;
}

@media (max-width: 650px) {
    .wc-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .wc-dialog {
        max-height: calc(100vh - 20px);
        padding: 21px 17px;
        border-radius: 17px;
    }

    .wc-title {
        font-size: 22px;
    }

    .wc-cookie-icon {
        width: 44px;
        height: 44px;
    }

    .wc-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wc-btn {
        width: 100%;
    }

    .wc-row {
        padding: 13px;
    }

    .wc-floating {
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-root * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
