#borniak-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 19, 30, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#borniak-consent-overlay[hidden] {
    display: none !important;
}

.borniak-consent-modal {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 960px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    outline: none;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
}

.borniak-consent-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
}

.borniak-consent-subtitle {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 14px;
}

.borniak-consent-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.428;
    letter-spacing: 0.5px;
}

.borniak-consent-tabs {
    display: flex;
    gap: 8px;
}

.borniak-consent-tab {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.borniak-consent-tab:hover {
    background: #fdf6e3;              
    border-color: #e4bc59;
    color: #111827;
}
.borniak-consent-tab:focus-visible {
    outline: 2px solid #e4bc59;
    outline-offset: 2px;
}
.borniak-consent-tab.is-active {
    background: #e4bc59;
    border-color: #e4bc59;
    color: #111827;
}
.borniak-consent-tab.is-active:hover {
    background: #ddb14f;              
    border-color: #ddb14f;
}
.borniak-consent-tab:active {
    transform: translateY(1px);
}


.borniak-consent-body {
    padding: 20px 28px 24px;
    overflow: auto;
}

.borniak-consent-pane.is-hidden {
    display: none;
}

.borniak-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.borniak-consent-row {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.borniak-consent-row-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.borniak-consent-row-desc {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.borniak-consent-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.borniak-consent-toggle-label {
    font-weight: 600;
    color: #e4bc59;
}

.borniak-consent-toggle-readonly {
    color: #6b7280;
    font-size: 13px;
}

.borniak-consent-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.borniak-consent-switch + .borniak-consent-switch-label {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    background-color: #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.borniak-consent-switch + .borniak-consent-switch-label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.borniak-consent-switch:checked + .borniak-consent-switch-label {
    background-color: #e4bc59;
}

.borniak-consent-switch:checked + .borniak-consent-switch-label::after {
    transform: translateX(24px);
}

.borniak-consent-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.borniak-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.borniak-btn:focus-visible {
    outline: 2px solid #e4bc59;
    outline-offset: 2px;
}

.borniak-btn-primary {
    /* background: linear-gradient(135deg, #e4bc59, #a8771c);
    color: #ffffff; */
    background: #e4bc59;
    box-shadow: 0 10px 20px rgba(168, 119, 28, 0.35);
}

.borniak-btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.borniak-btn-ghost {
    background: transparent;
    border: 1px dashed #e4bc59;
}

.borniak-consent-details {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
}

.borniak-consent-details-toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.borniak-consent-details-label {
    color: #111827;
}

.borniak-consent-details-icon {
    color: #6b7280;
    font-size: 14px;
}

.borniak-consent-details-content {
    margin-top: 12px;
}

.borniak-consent-vendor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.borniak-consent-vendor-list li {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f9fafb;
}

.borniak-consent-vendor-name {
    font-weight: 700;
}

.borniak-consent-vendor-category {
    color: #6b7280;
    font-size: 13px;
}

.borniak-consent-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.borniak-consent-link {
    color: #e4bc59;
    text-decoration: underline;
}

.borniak-consent-manage-link {
    color: #e4bc59;
    font-weight: 600;
}

.borniak-consent-fab {
    position: fixed;
    left: 15px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #222;
    font-size: 24px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.borniak-consent-fab svg {
    width: 28px;
    height: 28px;
    fill: #222;
}

.borniak-consent-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(168, 119, 28, 0.45);
}

.borniak-consent-fab:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.borniak-consent-fab:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.borniak-consent-header-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #f9fafb;
    margin-bottom: 12px;
}

.borniak-consent-summary {
    margin-top: 8px;
    color: #111827;
    line-height: 1.4;
}

body.borniak-consent-open,
html.borniak-consent-open {
    overflow: hidden;
}
/* Buttons: hover / active states */
.borniak-btn:hover {
    transform: translateY(-1px);
}

.borniak-btn:active {
    transform: translateY(0);
}

/* Primary button (gold gradient) */
.borniak-btn-primary:hover {
    box-shadow: 0 12px 24px rgba(168, 119, 28, 0.45);
    filter: brightness(1.02);
}

.borniak-btn-primary:active {
    box-shadow: 0 6px 12px rgba(168, 119, 28, 0.35);
    filter: brightness(0.98);
}

/* Secondary button (outlined) */
.borniak-btn-secondary:hover {
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    border-color: #e4bc59;
}

.borniak-btn-secondary:active {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
    background: #f9fafb;
}

/* Ghost button (dashed) */
.borniak-btn-ghost:hover {
    background: rgba(228, 188, 89, 0.12);
    border-style: solid;
    box-shadow: 0 8px 16px rgba(168, 119, 28, 0.18);
}

.borniak-btn-ghost:active {
    background: rgba(228, 188, 89, 0.18);
    box-shadow: 0 4px 10px rgba(168, 119, 28, 0.16);
}

/* Ensure hover doesn't fight keyboard focus */
.borniak-btn:focus-visible:hover {
    transform: none;
}

@media (max-width: 768px) {
    .borniak-consent-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .borniak-consent-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .borniak-consent-actions {
        justify-content: center;
    }
    .borniak-consent-fab{
        width: 40px;
        height: 40px;
        bottom: 55px;
    }
}
