/* ARELYTE Consent Management – Banner & Preference Modal */

/* Banner (fixed bottom) */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1a1d24;
    color: #e8eaed;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    padding: 20px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.consent-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.consent-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.consent-banner__text {
    flex: 1 1 280px;
}

.consent-banner__text p {
    margin: 0;
}

.consent-banner__text a {
    color: #7cb8ff;
    text-decoration: underline;
}

.consent-banner__text a:hover {
    color: #a8d4ff;
}

.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}

.consent-banner__btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.consent-banner__btn--accept {
    background: #2563eb;
    color: #fff;
}

.consent-banner__btn--accept:hover {
    background: #1d4ed8;
}

.consent-banner__btn--reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.consent-banner__btn--reject:hover {
    background: #374151;
    color: #e5e7eb;
}

.consent-banner__btn--customize {
    background: #374151;
    color: #e5e7eb;
}

.consent-banner__btn--customize:hover {
    background: #4b5563;
}

/* Modal overlay */
.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consent-modal--open {
    opacity: 1;
    visibility: visible;
}

.consent-modal__box {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.consent-modal__header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.consent-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.consent-modal__close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    font-size: 24px;
    transition: color 0.2s;
}

.consent-modal__close:hover {
    color: #fff;
}

.consent-modal__body {
    padding: 20px 24px;
}

.consent-modal__intro {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #d1d5db;
}

.consent-modal__intro a {
    color: #7cb8ff;
    text-decoration: underline;
}

.consent-pref {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #374151;
}

.consent-pref:last-of-type {
    border-bottom: none;
}

.consent-pref__input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
    cursor: pointer;
}

.consent-pref__label {
    flex: 1;
    cursor: pointer;
}

.consent-pref__label strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

.consent-pref__label span {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
}

.consent-modal__footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.consent-modal__btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.consent-modal__btn--secondary {
    background: #374151;
    color: #e5e7eb;
}

.consent-modal__btn--secondary:hover {
    background: #4b5563;
}

.consent-modal__btn--primary {
    background: #2563eb;
    color: #fff;
}

.consent-modal__btn--primary:hover {
    background: #1d4ed8;
}

/* Cookie preferences link (footer) */
.consent-preferences-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.consent-preferences-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}
