.sg-cookie-banner,
.sg-cookie-dialog,
.sg-cookie-settings {
    font-family: Arial, Helvetica, sans-serif;
}

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

.sg-cookie-banner {
    position: fixed;
    z-index: 2147483000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    box-shadow: 0 12px 42px rgba(0,0,0,.18);
    padding: 18px 20px;
    color: #161616;
}

.sg-cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sg-cookie-copy {
    flex: 1 1 auto;
    line-height: 1.5;
    font-size: 14px;
}

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

.sg-cookie-copy a {
    color: #b5121b;
    text-decoration: underline;
}

.sg-cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    flex-wrap: wrap;
}

.sg-cookie-button {
    appearance: none;
    border: 1px solid #171717;
    border-radius: 6px;
    padding: 10px 14px;
    background: #ffffff;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sg-cookie-button-primary {
    background: #c4121c;
    border-color: #c4121c;
    color: #ffffff;
}

.sg-cookie-button:hover,
.sg-cookie-button:focus {
    outline: 2px solid #222222;
    outline-offset: 2px;
}

.sg-cookie-settings {
    position: fixed;
    z-index: 2147482998;
    left: 16px;
    bottom: 16px;
    border: 1px solid #c8c8c8;
    border-radius: 999px;
    background: #ffffff;
    color: #333333;
    padding: 8px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.14);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.sg-cookie-dialog {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    background: rgba(0,0,0,.52);
    padding: 20px;
    overflow: auto;
}

.sg-cookie-dialog-card {
    position: relative;
    max-width: 560px;
    margin: 8vh auto 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    color: #171717;
    box-shadow: 0 16px 50px rgba(0,0,0,.28);
}

.sg-cookie-dialog-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.sg-cookie-dialog-card > p {
    margin: 0 0 18px;
    line-height: 1.5;
    font-size: 14px;
}

.sg-cookie-category {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-top: 1px solid #e4e4e4;
    padding: 15px 0;
}

.sg-cookie-category-text {
    flex: 1;
}

.sg-cookie-category-text strong {
    display: block;
    margin-bottom: 3px;
}

.sg-cookie-category-text span {
    display: block;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
}

.sg-cookie-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.sg-cookie-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 720px) {
    .sg-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }

    .sg-cookie-banner-inner {
        display: block;
    }

    .sg-cookie-actions {
        margin-top: 14px;
    }

    .sg-cookie-actions .sg-cookie-button {
        flex: 1 1 100%;
    }

    .sg-cookie-dialog {
        padding: 10px;
    }

    .sg-cookie-dialog-card {
        margin-top: 3vh;
    }
}
