.sgcm-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}
.sgcm-theme-dark.sgcm-consent-banner {
    background: #020617;
    color: #f9fafb;
}
.sgcm-theme-light.sgcm-consent-banner {
    background: #f9fafb;
    color: #020617;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.2);
}
.sgcm-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sgcm-consent-header {
    font-size: 16px;
    font-weight: 600;
}
.sgcm-consent-message {
    line-height: 1.5;
    font-size: 14px;
}
.sgcm-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.sgcm-btn {
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
    white-space: nowrap;
}
.sgcm-btn:focus {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}
.sgcm-theme-dark .sgcm-btn-primary {
    background: #22c55e;
    color: #022c22;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.sgcm-theme-dark .sgcm-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
}
.sgcm-theme-light .sgcm-btn-primary {
    background: #22c55e;
    color: #052e16;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.sgcm-theme-light .sgcm-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-1px);
}
.sgcm-theme-dark .sgcm-btn-secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(249, 250, 251, 0.2);
}
.sgcm-theme-dark .sgcm-btn-secondary:hover {
    background: rgba(31, 41, 55, 0.9);
}
.sgcm-theme-light .sgcm-btn-secondary {
    background: transparent;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.15);
}
.sgcm-theme-light .sgcm-btn-secondary:hover {
    background: #e5e7eb;
}
.sgcm-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.sgcm-link-inline {
    font-size: 12px;
}
.sgcm-theme-dark .sgcm-link {
    color: #a5b4fc;
}
.sgcm-theme-dark .sgcm-link:hover {
    color: #c7d2fe;
}
.sgcm-theme-light .sgcm-link {
    color: #4f46e5;
}
.sgcm-theme-light .sgcm-link:hover {
    color: #312e81;
}
.sgcm-consent-footer {
    font-size: 12px;
    margin-top: 4px;
}
.sgcm-theme-dark .sgcm-consent-footer {
    color: #d1d5db;
}
.sgcm-theme-light .sgcm-consent-footer {
    color: #4b5563;
}
.sgcm-consent-footer a {
    text-decoration: underline;
}
.sgcm-theme-dark .sgcm-consent-footer a {
    color: #a5b4fc;
}
.sgcm-theme-dark .sgcm-consent-footer a:hover {
    color: #c7d2fe;
}
.sgcm-theme-light .sgcm-consent-footer a {
    color: #4f46e5;
}
.sgcm-theme-light .sgcm-consent-footer a:hover {
    color: #312e81;
}
@media (min-width: 768px) {
    .sgcm-consent-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .sgcm-consent-copy {
        max-width: 70%;
    }
    .sgcm-consent-actions {
        justify-content: flex-end;
    }
}
.sgcm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
}
.sgcm-modal-backdrop.sgcm-open {
    display: flex;
}
.sgcm-modal {
    max-width: 500px;
    width: 94%;
    padding: 20px 22px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sgcm-theme-dark.sgcm-modal {
    background: #020617;
    color: #e5e7eb;
}
.sgcm-theme-light.sgcm-modal {
    background: #f9fafb;
    color: #111827;
}
.sgcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sgcm-modal-title {
    font-size: 16px;
    font-weight: 600;
}
.sgcm-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.sgcm-theme-dark .sgcm-modal-close {
    color: #9ca3af;
}
.sgcm-theme-dark .sgcm-modal-close:hover {
    color: #e5e7eb;
}
.sgcm-theme-light .sgcm-modal-close {
    color: #6b7280;
}
.sgcm-theme-light .sgcm-modal-close:hover {
    color: #111827;
}
.sgcm-modal-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.sgcm-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.sgcm-toggle-label {
    font-size: 14px;
    margin-right: 8px;
}
.sgcm-toggle {
    position: relative;
    width: 42px;
    height: 22px;
}
.sgcm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.sgcm-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    border-radius: 999px;
    transition: 0.2s;
}
.sgcm-theme-dark .sgcm-slider {
    background-color: #374151;
}
.sgcm-theme-light .sgcm-slider {
    background-color: #d1d5db;
}
.sgcm-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 999px;
    transition: 0.2s;
}
.sgcm-toggle input:checked + .sgcm-slider {
    background-color: #22c55e;
}
.sgcm-toggle input:checked + .sgcm-slider:before {
    transform: translateX(20px);
}
.sgcm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.sgcm-reopen-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 999997;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sgcm-theme-dark.sgcm-reopen-btn {
    background: #0f172a;
    color: #e5e7eb;
}
.sgcm-theme-dark.sgcm-reopen-btn:hover {
    background: #020617;
}
.sgcm-theme-light.sgcm-reopen-btn {
    background: #111827;
    color: #f9fafb;
}
.sgcm-theme-light.sgcm-reopen-btn:hover {
    background: #020617;
}
