.sg-cookie-banner,
.sg-cookie-modal {
    font-family: inherit;
}

.sg-cookie-banner[hidden],
.sg-cookie-modal[hidden] {
    display: none !important;
}

.sg-cookie-banner {
    position: fixed;
    z-index: 99998;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.sg-cookie-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #101828;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.sg-cookie-copy {
    max-width: 720px;
}

.sg-cookie-copy strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}

.sg-cookie-copy p {
    color: rgba(255,255,255,.78);
    margin: 0 0 6px;
    line-height: 1.55;
}

.sg-cookie-copy a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 800;
}

.sg-cookie-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.sg-cookie-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.sg-cookie-btn:hover {
    transform: translateY(-1px);
}

.sg-cookie-btn-primary {
    background: #f35941;
    color: #ffffff;
}

.sg-cookie-btn-light {
    background: rgba(255,255,255,.10);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.16);
}

.sg-cookie-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sg-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 24, .72);
    backdrop-filter: blur(4px);
}

.sg-cookie-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #ffffff;
    color: #20243a;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.sg-cookie-modal-header,
.sg-cookie-modal-footer {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef0f5;
}

.sg-cookie-modal-footer {
    border-top: 1px solid #eef0f5;
    border-bottom: 0;
    justify-content: flex-end;
}

.sg-cookie-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.sg-cookie-close {
    border: 0;
    background: #f3f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sg-cookie-modal-body {
    padding: 18px 20px;
}

.sg-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eef0f5;
}

.sg-cookie-option:last-child {
    border-bottom: 0;
}

.sg-cookie-option strong {
    display: block;
    margin-bottom: 4px;
    color: #172039;
}

.sg-cookie-option p {
    margin: 0;
    color: #5d6475;
    line-height: 1.55;
}

.sg-cookie-required {
    color: #f35941;
    font-weight: 800;
    white-space: nowrap;
}

.sg-cookie-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.sg-cookie-modal .sg-cookie-btn-light {
    background: #eef1f7;
    color: #172039;
    border-color: #e4e8f1;
}

@media (max-width: 767px) {
    .sg-cookie-inner {
        display: block;
    }

    .sg-cookie-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .sg-cookie-btn {
        width: 100%;
    }

    .sg-cookie-modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}
