#hive-consent-banner[hidden],
#hive-consent-modal[hidden],
#hive-consent-overlay[hidden] {
    display: none !important;
}

#hive-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #04194e;
    color: #fff;
    padding: 1.25rem 1rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

.hive-consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hive-consent-banner__message {
    flex: 1 1 260px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hive-consent-banner__message a {
    color: #ffcd2a;
    text-decoration: underline;
}

.hive-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.hive-consent-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    min-width: 9rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .hive-consent-btn {
        transition: none;
    }
}

.hive-consent-btn--primary {
    background: #ffcd2a;
    color: #04194e;
    border-color: #ffcd2a;
}

.hive-consent-btn--primary:hover,
.hive-consent-btn--primary:focus {
    background: #e6b800;
    border-color: #e6b800;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hive-consent-btn--secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
    min-width: 9rem;
}

.hive-consent-btn--secondary:hover,
.hive-consent-btn--secondary:focus {
    background: rgba(255,255,255,0.1);
    outline: 2px solid #ffcd2a;
    outline-offset: 2px;
}

.hive-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999998;
}

#hive-consent-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
    background: #fff;
    color: #04194e;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
    width: calc(100% - 2rem);
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 600px) {
    #hive-consent-modal {
        padding: 2rem;
    }
}

.hive-consent-modal__inner {
    position: relative;
}

.hive-consent-modal__close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #04194e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.hive-consent-modal__close:hover,
.hive-consent-modal__close:focus {
    background: #f0f0f0;
    outline: 2px solid #04194e;
}

.hive-consent-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #04194e;
}

.hive-consent-modal__description {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.hive-consent-modal__description a {
    color: #04194e;
    font-weight: 600;
    text-decoration: underline;
}

.hive-consent-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    border-top: 1px solid #e0e0e0;
}

.hive-consent-toggle-info {
    flex: 1;
    cursor: default;
}

.hive-consent-toggle-info[for] {
    cursor: pointer;
}

.hive-consent-toggle-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #04194e;
    margin-bottom: 0.2rem;
}

.hive-consent-toggle-desc {
    display: block;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.hive-consent-toggle-always {
    font-size: 0.8rem;
    font-weight: 600;
    color: #04194e;
    white-space: nowrap;
    align-self: center;
}

.hive-consent-switch {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    align-self: center;
    cursor: pointer;
}

.hive-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.hive-consent-switch__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: background 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .hive-consent-switch__slider {
        transition: none;
    }
}

.hive-consent-switch__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .hive-consent-switch__slider::before {
        transition: none;
    }
}

.hive-consent-switch input:checked + .hive-consent-switch__slider {
    background: #04194e;
}

.hive-consent-switch input:checked + .hive-consent-switch__slider::before {
    transform: translateX(22px);
}

.hive-consent-switch input:focus + .hive-consent-switch__slider {
    outline: 2px solid #ffcd2a;
    outline-offset: 2px;
}

.hive-consent-modal__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.25rem;
}

#hive-consent-reopen {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 999997;
    background: #04194e;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    #hive-consent-reopen {
        transition: none;
    }
}

#hive-consent-reopen:hover,
#hive-consent-reopen:focus {
    opacity: 1;
    outline: 2px solid #ffcd2a;
    outline-offset: 2px;
}
