/* GoodNatureVibe Cookie Consent Banner */

.gnv-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999998;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    border-top: 4px solid #1a3d2b;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.gnv-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (min-width: 960px) {
    .gnv-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
}

.gnv-banner-content {
    flex: 1 1 auto;
}

.gnv-banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a3d2b;
}

.gnv-banner-text {
    margin: 0;
    color: #333;
}

.gnv-banner-link {
    color: #1a3d2b;
    text-decoration: underline;
    font-weight: 600;
}

.gnv-banner-link:hover,
.gnv-banner-link:focus {
    color: #0d261a;
}

.gnv-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

@media (min-width: 640px) {
    .gnv-banner-actions {
        flex-wrap: nowrap;
    }
}

.gnv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}

.gnv-btn:focus-visible {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.gnv-btn-primary {
    background: #1a3d2b;
    color: #fff;
    border-color: #1a3d2b;
}

.gnv-btn-primary:hover,
.gnv-btn-primary:focus {
    background: #0d261a;
    border-color: #0d261a;
}

.gnv-btn-secondary {
    background: #ffffff;
    color: #1a3d2b;
    border-color: #1a3d2b;
}

.gnv-btn-secondary:hover,
.gnv-btn-secondary:focus {
    background: #f2f7f4;
}

.gnv-btn-settings {
    background: transparent;
    color: #1a3d2b;
    border-color: transparent;
    text-decoration: underline;
    padding: 10px 12px;
}

.gnv-btn-settings:hover,
.gnv-btn-settings:focus {
    color: #0d261a;
}

/* Preferences modal */

.gnv-preferences-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 20, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gnv-preferences-modal {
    background: #fff;
    color: #1a1a1a;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gnv-prefs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.gnv-prefs-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3d2b;
}

.gnv-prefs-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 6px;
}

.gnv-prefs-close:hover,
.gnv-prefs-close:focus {
    color: #1a3d2b;
    background: #f3f4f6;
}

.gnv-prefs-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.gnv-prefs-intro {
    margin: 0 0 16px;
    color: #374151;
}

.gnv-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.gnv-category-locked {
    background: #f0f6f2;
    border-color: #cfe0d6;
}

.gnv-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.gnv-category-info {
    flex: 1 1 auto;
}

.gnv-category-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2b;
}

.gnv-category-desc {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.gnv-toggle-wrapper {
    flex: 0 0 auto;
}

.gnv-toggle-locked {
    display: inline-block;
    padding: 4px 10px;
    background: #1a3d2b;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Toggle switch */

.gnv-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.gnv-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gnv-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.2s;
}

.gnv-toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gnv-toggle input:checked + .gnv-toggle-slider {
    background: #1a3d2b;
}

.gnv-toggle input:checked + .gnv-toggle-slider::before {
    transform: translateX(22px);
}

.gnv-toggle input:focus-visible + .gnv-toggle-slider {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.gnv-prefs-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

/* Banner variants */

.gnv-banner-modal {
    bottom: auto;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 680px;
    width: calc(100% - 32px);
    border-radius: 10px;
    border: 1px solid #1a3d2b;
    border-top-width: 4px;
}

.gnv-banner-corner {
    right: auto;
    max-width: 420px;
    left: 20px;
    bottom: 20px;
    border-radius: 10px;
    border: 1px solid #1a3d2b;
    border-top-width: 4px;
}

/* Reduce motion */

@media (prefers-reduced-motion: reduce) {
    .gnv-btn,
    .gnv-toggle-slider,
    .gnv-toggle-slider::before {
        transition: none;
    }
}
