.sc-panel {
    position: fixed;
    z-index: 2147483000;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    box-sizing: border-box;
    padding: 24px;
    background: #fff;
    color: #172033;
    border: 1px solid #dbe1e8;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    font: 15px/1.5 system-ui, sans-serif;
}

.sc-panel h2 {
    color: #172033;
    font-size: 23px;
    margin: 0 0 12px;
}

.sc-panel p {
    margin: 8px 0;
    color: #344054;
}

.sc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sc-actions button,
.sc-settings {
    border: 1px solid #334155;
    border-radius: 9px;
    background: #fff;
    color: #172033;
    padding: 12px 16px;
    font: 600 14px system-ui, sans-serif;
    cursor: pointer;
}

.sc-actions button {
    flex: 1 1 160px;
    min-height: 46px;
}

.sc-actions button:hover,
.sc-settings:hover {
    background: #f1f5f9;
}

.sc-actions button:focus-visible,
.sc-settings:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.sc-choices label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: #172033;
}

.sc-choices input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
}

.sc-settings {
    position: fixed;
    z-index: 2147482999;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    padding: 7px 10px;
}

@media (max-width: 540px) {
    .sc-panel {
        padding: 18px;
        bottom: 12px;
    }

    .sc-actions {
        flex-direction: column;
    }

    .sc-actions button {
        flex: auto;
        width: 100%;
    }
}

.sc-panel {
    border-top: 4px solid #15803d;
}
.sc-actions button {
    border-color: #15803d;
    background: #f0fdf4;
    color: #166534;
}
.sc-actions button:hover {
    background: #dcfce7;
}


/* Consent action layout */
.sc-panel .sc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    direction: ltr;
}

.sc-panel .sc-actions button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    border: 1px solid #217a48;
    background: #217a48;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    order: 0;
}

.sc-panel .sc-actions button:hover {
    background: #19643a;
    border-color: #19643a;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .sc-panel .sc-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
