.sg-cookie-settings {
    display: flex;
    justify-content: center;
    padding: 8px 16px 14px;
}

.sg-cookie-settings button {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #404951;
    font: 14px/1.35 system-ui, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

.sg-cookie-panel[hidden] {
    display: none;
}

.sg-cookie-panel {
    position: fixed;
    z-index: 9999;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 880px;
    margin-inline: auto;
    padding: 18px 22px;
    border: 1px solid #d6dbe0;
    border-radius: 12px;
    background: #fff;
    color: #202a32;
    box-shadow: 0 8px 28px #202a3226;
    font: 14px/1.45 system-ui, sans-serif;
}

.sg-cookie-panel h2 {
    margin: 0 0 6px;
    color: inherit;
    font: 650 17px/1.25 system-ui, sans-serif;
}

.sg-cookie-panel p {
    margin: 0;
    color: inherit;
}

.sg-cookie-panel a {
    color: #23465d;
    text-decoration: underline;
}

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

.sg-cookie-actions button {
    padding: 9px 12px;
    border: 1px solid #23465d;
    border-radius: 6px;
    background: #fff;
    color: #23465d;
    font: 600 14px/1.25 system-ui, sans-serif;
    text-align: center;
    cursor: pointer;
}

.sg-cookie-actions button[data-choice="accepted"] {
    background: #23465d;
    color: #fff;
}

.sg-cookie-panel button:focus-visible,
.sg-cookie-settings button:focus-visible {
    outline: 2px solid #0e6098;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .sg-cookie-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

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