/* Banner Base */
.wsc-cookies-banner {
    position: fixed;
    bottom: 20px;
    width: 95%;
    max-width: 500px;
    min-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Posicionamento */
.wsc-cookies-banner.position-left {
    left: 20px;
}

.wsc-cookies-banner.position-right {
    right: 20px;
}

.wsc-cookies-banner.show {
    opacity: 1;
    visibility: visible;
}

/* Layout Vertical */
.wsc-cookies-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wsc-cookies-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.wsc-cookies-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wsc-cookies-primary, #2563eb);
}

.wsc-cookies-icon svg {
    width: 24px;
    height: 24px;
}

.wsc-cookies-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    white-space: nowrap;
}

.wsc-cookies-message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    white-space: normal;
}

.wsc-cookies-message a {
    color: var(--wsc-cookies-primary, #2563eb);
    text-decoration: none;
    font-weight: 500;
}

.wsc-cookies-message a:hover {
    text-decoration: underline;
}

.wsc-cookies-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 5px;
}

.wsc-cookies-accept,
.wsc-cookies-settings {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    white-space: nowrap;
}

.wsc-cookies-accept {
    background: var(--wsc-cookies-primary, #2563eb);
    color: #ffffff !important;
}

.wsc-cookies-accept:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.wsc-cookies-settings {
    background: #f3f4f6;
    color: var(--wsc-cookies-secondary, #4b5563) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wsc-cookies-settings:hover {
    background: #e5e7eb;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .wsc-cookies-banner {
        width: calc(100% - 40px);
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .wsc-cookies-banner {
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: translateY(100%) !important;
        border-radius: 12px 12px 0 0;
        margin: 0;
    }

    .wsc-cookies-banner.show {
        transform: translateY(0) !important;
    }

    .wsc-cookies-content {
        padding: 15px 20px;
    }

    .wsc-cookies-actions {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }

    .wsc-cookies-accept,
    .wsc-cookies-settings {
        padding: 8px 16px;
    }
}

/* Preview no admin */
.wsc-cookies-banner-preview {
    position: relative;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    margin: 0 auto;
    position: relative;
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wsc-cookies-banner.show {
    animation: slideUp 0.3s ease-out forwards;
}

/* Estilos para o preview no painel admin */
.wsc-cookies-preview {
    margin: 30px 0;
    position: relative;
}

.wsc-preview-notice {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.wsc-preview-notice p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
} 