/**
 * File: app/code/Sipexa/CookieConsent/view/frontend/web/css/cookie-consent.css
 * Description: Styles for EU cookie consent banner
 */

.sipexa-cookie-consent {
    position: fixed;
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Left Position (Default) */
.sipexa-cookie-consent-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 350px;
    width: 100%;
}

/* Right Position */
.sipexa-cookie-consent-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 350px;
    width: 100%;
}

/* Bottom Position */
.sipexa-cookie-consent-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
}

/* Top Position */
.sipexa-cookie-consent-top {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
}

.cookie-consent-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.sipexa-cookie-consent-bottom .cookie-consent-container,
.sipexa-cookie-consent-top .cookie-consent-container {
    border-radius: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    transition: color 0.3s;
}

.cookie-consent-close:hover {
    color: #000;
}

.cookie-consent-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-right: 30px;
}

.cookie-consent-message {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.cookie-consent-privacy {
    margin: 0 0 15px 0;
    font-size: 13px;
}

.cookie-consent-privacy a {
    color: #1979c3;
    text-decoration: underline;
}

.cookie-consent-privacy a:hover {
    color: #006bb4;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.cookie-consent-btn-accept {
    background: #1979c3;
    color: #ffffff;
}

.cookie-consent-btn-accept:hover {
    background: #006bb4;
}

.cookie-consent-btn-reject {
    background: #f0f0f0;
    color: #333;
}

.cookie-consent-btn-reject:hover {
    background: #e0e0e0;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #1979c3;
    border: 1px solid #1979c3;
}

.cookie-consent-btn-settings:hover {
    background: #1979c3;
    color: #ffffff;
}

.cookie-consent-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.cookie-consent-btn-secondary:hover {
    background: #e0e0e0;
}

/* Cookie Categories */
.cookie-categories {
    margin: 20px 0;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.cookie-category-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

.cookie-category-checkbox:disabled {
    cursor: not-allowed;
}

.cookie-category-name {
    flex: 1;
}

.cookie-category-required {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    font-style: italic;
}

.cookie-category-description {
    margin: 5px 0 0 30px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .sipexa-cookie-consent-left,
    .sipexa-cookie-consent-right {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 10px;
        transform: none;
        max-width: none;
    }

    .cookie-consent-container {
        padding: 15px;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-message {
        font-size: 13px;
    }
}

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

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

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

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

.sipexa-cookie-consent-left {
    animation: slideInLeft 0.4s ease-out;
}

.sipexa-cookie-consent-right {
    animation: slideInRight 0.4s ease-out;
}

.sipexa-cookie-consent-bottom {
    animation: slideInBottom 0.4s ease-out;
}

.sipexa-cookie-consent-top {
    animation: slideInTop 0.4s ease-out;
}
