/* Estilos para a barra de progresso de frete grátis */

/* Animações */
@keyframes vsfb-animate-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 0;
    }
}

@keyframes vsfb-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

@keyframes vsfb-shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Container principal */
.vsfb-wrap {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Mensagem */
.vsfb-message {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    font-weight: 500;
}

/* Barra de progresso base */
.vsfb-progress-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
    transition: all 0.3s ease;
}

/* Barra de progresso preenchida */
.vsfb-progress-amount {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Estilos específicos para o mini-carrinho */
.widget_shopping_cart_content .vsfb-wrap {
    padding: 10px;
    margin: 5px 0;
}

.widget_shopping_cart_content .vsfb-message {
    font-size: 12px;
}

.widget_shopping_cart_content .vsfb-progress-bar {
    height: 10px;
}

/* Estilos de barra */

/* Estilo Lisa (padrão) */
.vsfb-style-flat .vsfb-progress-amount {
    background-color: #EC7404;
}

/* Estilo Gradiente */
.vsfb-style-gradient .vsfb-progress-amount {
    background: linear-gradient(135deg, #EC7404 0%, #f39c12 100%);
}

/* Estilo Pulse */
.vsfb-style-pulse .vsfb-progress-amount {
    animation: vsfb-pulse 2s infinite;
}

/* Estilo Brilhante */
.vsfb-style-shine .vsfb-progress-amount {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: vsfb-shine 2s infinite;
}

/* Estilo Contornada */
.vsfb-style-outline .vsfb-progress-bar {
    border: 2px solid #EC7404;
    background-color: transparent !important;
    box-shadow: none;
}

.vsfb-style-outline .vsfb-progress-amount {
    margin: 2px;
    height: calc(100% - 4px);
    border-radius: 4px;
}

/* Animação de preenchimento */
.vsfb-animated .vsfb-progress-amount {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    animation: vsfb-animate-stripes 1.5s linear infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .vsfb-wrap {
        padding: 10px;
    }
    
    .vsfb-message {
        font-size: 13px;
    }
}

/* Estilos para a página de administração */
.vsfb-admin-wrap {
    margin: 20px 0;
}

.vsfb-admin-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vsfb-admin-main {
    flex: 1;
    min-width: 500px;
    margin-right: 20px;
}

.vsfb-admin-sidebar {
    width: 300px;
}

.vsfb-admin-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    padding: 15px;
}

.vsfb-admin-box h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vsfb-preview {
    margin-top: 10px;
}

.vsfb-preview-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.vsfb-preview-container {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 15px;
    border-radius: 3px;
}

.vsfb-preview-controls {
    margin-top: 15px;
    text-align: center;
}

.vsfb-preview-controls input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

/* Responsividade para admin */
@media (max-width: 960px) {
    .vsfb-admin-container {
        flex-direction: column;
    }
    
    .vsfb-admin-main {
        margin-right: 0;
        min-width: auto;
    }
    
    .vsfb-admin-sidebar {
        width: 100%;
    }
}
