/* Sanco Cookie Consent Styles */

.sanco-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    background: var(--sanco-cookie-bg);
    color: var(--sanco-cookie-text);
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sanco-cookie-bottom {
    bottom: 0;
}

.sanco-cookie-top {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sanco-cookie-top.sanco-cookie-consent {
    animation: slideInTop 0.5s ease-out;
}

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

.sanco-cookie-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sanco-cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.sanco-cookie-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--sanco-cookie-text);
    opacity: 0.9;
    margin-top: 2px;
}

.sanco-cookie-icon svg {
    width: 100%;
    height: 100%;
}

.sanco-cookie-message {
    flex: 1;
}

.sanco-cookie-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sanco-cookie-text);
    opacity: 0.95;
}

.sanco-cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sanco-cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.sanco-cookie-accept {
    background: var(--sanco-cookie-button-bg);
    color: var(--sanco-cookie-button-text);
}

.sanco-cookie-accept:hover {
    background: #1a4566;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 51, 77, 0.3);
}

.sanco-cookie-decline {
    background: transparent;
    color: var(--sanco-cookie-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sanco-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.sanco-cookie-settings {
    background: transparent;
    color: var(--sanco-cookie-text);
    border: none;
    text-decoration: underline;
    padding: 12px 16px;
}

.sanco-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* Modal Styles */
.sanco-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 33, 55, 0.9);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

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

.sanco-cookie-modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sanco-cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sanco-cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0d2137;
}

.sanco-cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sanco-cookie-modal-close:hover {
    background: #f3f4f6;
    color: #0d2137;
}

.sanco-cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.sanco-cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.sanco-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sanco-cookie-category-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sanco-cookie-category h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0d2137;
}

.sanco-cookie-category p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* Toggle Switch */
.sanco-cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sanco-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sanco-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.sanco-cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.sanco-cookie-switch input:checked + .sanco-cookie-slider {
    background-color: #14334d;
}

.sanco-cookie-switch input:checked + .sanco-cookie-slider:before {
    transform: translateX(24px);
}

.sanco-cookie-switch input:disabled + .sanco-cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.sanco-cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sanco-cookie-container {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .sanco-cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sanco-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .sanco-cookie-modal-content {
        max-height: 90vh;
    }

    .sanco-cookie-modal-footer {
        flex-direction: column;
    }

    .sanco-cookie-modal-footer .sanco-cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sanco-cookie-container {
        padding: 16px;
    }

    .sanco-cookie-message p {
        font-size: 14px;
    }

    .sanco-cookie-modal-header,
    .sanco-cookie-modal-body,
    .sanco-cookie-modal-footer {
        padding: 16px;
    }
}
