/**
 * Remisens Consent Bridge - Styles
 * Adapted to Hotel Lucija design system
 */

/* Banner Styles */
.remisens-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    background: #F5F2EC; /* sand / pale-gray */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 999999;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.remisens-consent-banner.remisens-consent-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.remisens-consent-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.remisens-consent-header {
    width: 100%;
    text-align: center;
}

.remisens-consent-title {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: #3E2A1F; /* dark-chocolate */
    margin: 0;
    padding-left: 30px;
}

.remisens-consent-text {
    width: 100%;
    text-align: center;
}

.remisens-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #3E2A1F; /* dark-chocolate */
}

.remisens-consent-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.remisens-consent-footer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.remisens-consent-privacy-link {
    font-size: 12px;
    color: #3E2A1F;
    text-decoration: underline;
}

.remisens-consent-privacy-link:hover {
    text-decoration: none;
}

/* Button Styles */
.remisens-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.remisens-btn-primary {
    background: #CCA969; /* dark-gold */
    color: #FFFFFF;
}

.remisens-btn-primary:hover {
    background: #B8955A;
}

.remisens-btn-secondary {
    background: #F5F2EC; /* sand */
    color: #3E2A1F; /* dark-chocolate */
    border: 1px solid #DDD;
}

.remisens-btn-secondary:hover {
    background: #E8E5DF;
}

/* Modal Styles */
.remisens-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.remisens-consent-modal-content {
    background: #F5F2EC;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.remisens-consent-modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.remisens-modal-close {
    width: 35px;
    height: 35px;
    background: #CCA969; /* dark-gold */
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.remisens-modal-close:hover {
    background: #B8955A;
}

.remisens-consent-modal-body {
    font-family: 'Instrument Sans', sans-serif;
}

.remisens-consent-modal-intro {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
}

.remisens-consent-modal-intro p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: #3E2A1F;
    margin: 0 0 12px 0;
}

.remisens-consent-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.remisens-consent-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF; /* almost-white */
    border-radius: 5px;
}

.remisens-consent-option-disabled {
    opacity: 0.8;
}

.remisens-consent-option-info {
    flex: 1;
}

.remisens-consent-option-info h4 {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #3E2A1F;
    margin: 0 0 8px 0;
}

.remisens-consent-option-info p {
    font-size: 12px;
    line-height: 1.5;
    color: #3E2A1F;
    margin: 0;
}

.remisens-consent-option-toggle {
    flex-shrink: 0;
}

.remisens-toggle-label {
    font-size: 12px;
    color: #666;
}

/* Toggle Switch */
.remisens-toggle {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
}

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

.remisens-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 16px;
}

.remisens-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.remisens-toggle input:checked + .remisens-toggle-slider {
    background-color: #2196F3;
}

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

.remisens-consent-modal-actions {
    display: flex;
    justify-content: center;
    padding: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .remisens-consent-banner {
        bottom: 20px;
        width: calc(100% - 40px);
        padding: 16px;
    }
    
    .remisens-consent-title {
        font-size: 16px;
        padding-left: 0;
    }
    
    .remisens-consent-text p {
        font-size: 13px;
    }
    
    .remisens-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .remisens-btn {
        width: 100%;
    }
    
    .remisens-consent-modal-content {
        padding: 12px;
    }
    
    .remisens-consent-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .remisens-consent-option-toggle {
        align-self: flex-end;
    }
}
