.sys-consent {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    font-family: inherit;
}

.sys-consent-bottom {
    left: 50%;
    bottom: 24px;
    width: calc(100% - 40px);
    max-width: 980px;
    transform: translateX(-50%);
}

.sys-consent-bottom-left {
    left: 24px;
    bottom: 24px;
    width: calc(100% - 48px);
    max-width: 560px;
}

.sys-consent-bottom-right {
    right: 24px;
    bottom: 24px;
    width: calc(100% - 48px);
    max-width: 560px;
}

.sys-consent-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 18px 18px 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 20, 20, 0.08);
    border-radius: 18px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: auto;
    overflow: hidden;
    animation: sysConsentIn 0.35s ease both;
}

.sys-consent-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
}

.sys-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.sys-consent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #f5f5f3;
    color: #1f1f1f;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sys-consent-body {
    min-width: 0;
}

.sys-consent-title {
    display: block;
    margin-bottom: 5px;
    color: #161616;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.sys-consent-text {
    color: #676767;
    font-size: 13px;
    line-height: 1.55;
}

.sys-consent-text p {
    margin: 0;
}

.sys-consent-text p + p {
    margin-top: 6px;
}

.sys-consent-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    color: #2b2b2b;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        gap 0.2s ease;
}

.sys-consent-link:hover {
    gap: 8px;
    opacity: 0.75;
}

.sys-consent-actions {
    flex: 0 0 auto;
}

.sys-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #171717;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.sys-consent-button:hover {
    transform: translateY(-1px);
    background: #000000;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.sys-consent-button:active {
    transform: translateY(0);
}

.sys-consent-button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.14);
    outline-offset: 3px;
}

.sys-consent[hidden] {
    display: none !important;
}

@keyframes sysConsentIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sys-consent-panel {
        animation: none;
    }

    .sys-consent-button,
    .sys-consent-link {
        transition: none;
    }
}

@media (max-width: 768px) {
    .sys-consent-bottom,
    .sys-consent-bottom-left,
    .sys-consent-bottom-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .sys-consent-panel {
        display: block;
        padding: 16px;
        border-radius: 16px;
    }

    .sys-consent-content {
        gap: 12px;
    }

    .sys-consent-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .sys-consent-title {
        font-size: 14px;
    }

    .sys-consent-text {
        font-size: 12.5px;
    }

    .sys-consent-actions {
        margin-top: 14px;
    }

    .sys-consent-button {
        width: 100%;
        min-height: 46px;
    }
}