/**
 * Barion Cookie Consent Banner Styles
 */

/* Banner container */
.barion-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.barion-cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.barion-cookie-banner__text {
    flex: 1;
    min-width: 300px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.barion-cookie-banner__text a {
    color: #3498db;
    text-decoration: underline;
}

.barion-cookie-banner__text a:hover {
    color: #5dade2;
}

.barion-cookie-banner__buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.barion-cookie-banner__button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barion-cookie-banner__button--accept {
    background: #27ae60;
    color: #fff;
}

.barion-cookie-banner__button--accept:hover {
    background: #2ecc71;
}

.barion-cookie-banner__button--reject {
    background: transparent;
    color: #bdc3c7;
    border: 1px solid #bdc3c7;
}

.barion-cookie-banner__button--reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border-color: #ecf0f1;
}

/* Cookie toggle button (bottom right corner) */
#barion-cookie-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    z-index: 999998;
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#barion-cookie-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: #ccc;
}

#barion-cookie-toggle:active {
    transform: scale(0.95);
}

#barion-cookie-toggle .cookie-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

/* Tooltip for toggle button */
#barion-cookie-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

#barion-cookie-toggle:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .barion-cookie-banner {
        padding: 15px;
    }

    .barion-cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .barion-cookie-banner__text {
        min-width: 100%;
    }

    .barion-cookie-banner__buttons {
        width: 100%;
        justify-content: center;
    }

    .barion-cookie-banner__button {
        flex: 1;
        max-width: 150px;
    }

    #barion-cookie-toggle {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}
