/**
 * Zalp Cookie Notice Styles
 * Styles for the frontend GDPR / Cookie consent banner
 */

.zalp-cookie-banner {
    position: fixed;
    z-index: 999999;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    font-family: inherit;
}

.zalp-cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.zalp-cookie-banner.is-closing {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

/* Positions */
.zalp-cookie-bottom-right {
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
}

.zalp-cookie-bottom-left {
    bottom: 24px;
    left: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
}

.zalp-cookie-bottom-bar {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0 !important;
}

/* Structure */
.zalp-cookie-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.zalp-cookie-bottom-bar .zalp-cookie-content-wrapper {
    border-radius: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.zalp-cookie-icon-col {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00d2ff;
}

.zalp-cookie-body {
    flex: 1;
}

.zalp-cookie-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.zalp-cookie-text {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.zalp-cookie-bottom-bar .zalp-cookie-text {
    margin-bottom: 0;
}

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

/* Buttons */
.zalp-cookie-btn-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: linear-gradient(135deg, #1e6eff 0%, #00a8cc 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 140, 255, 0.35);
    transition: all 0.2s ease;
}

.zalp-cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 140, 255, 0.5);
    filter: brightness(1.1);
}

.zalp-cookie-btn-more {
    color: #00d2ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.zalp-cookie-btn-more:hover {
    color: #ffffff;
    text-decoration: underline;
}

.zalp-cookie-btn-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    color: inherit;
}

.zalp-cookie-btn-close:hover {
    opacity: 1;
}

/* Theme: Dark (Default) */
.zalp-cookie-theme-dark .zalp-cookie-content-wrapper {
    background: rgba(20, 26, 35, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.zalp-cookie-theme-dark .zalp-cookie-text {
    color: #d1d5db;
}

/* Theme: Light */
.zalp-cookie-theme-light .zalp-cookie-content-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.zalp-cookie-theme-light .zalp-cookie-icon-col {
    color: #1e6eff;
}

.zalp-cookie-theme-light .zalp-cookie-text {
    color: #4b5563;
}

.zalp-cookie-theme-light .zalp-cookie-btn-more {
    color: #1e6eff;
}

.zalp-cookie-theme-light .zalp-cookie-btn-more:hover {
    color: #111827;
}

/* Theme: Blue */
.zalp-cookie-theme-blue .zalp-cookie-content-wrapper {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: #ffffff;
}

.zalp-cookie-theme-blue .zalp-cookie-icon-col {
    color: #00d2ff;
}

@media (max-width: 600px) {
    .zalp-cookie-bottom-right,
    .zalp-cookie-bottom-left {
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .zalp-cookie-content-wrapper {
        padding: 16px;
        gap: 12px;
    }

    .zalp-cookie-icon-col {
        display: none;
    }
}
