.programa-incentivo-container {
    background: linear-gradient(135deg, #5A287F 0%, #80217E 100%);
    border: 2px solid #D39C2F;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.programa-incentivo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.programa-incentivo-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saldo-disponivel {
    font-size: 18px;
    margin-bottom: 10px;
    color: #EDC315;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.programa-incentivo-info-small {
    font-size: 14px;
    color: #ffffff;
    margin-top: 15px;
}

/* Estilo específico para o valor do saldo com cor dourada */
.saldo-valor-dourado .woocommerce-Price-amount,
.saldo-valor-dourado .amount,
.saldo-valor-dourado {
    color: #EDC315 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    font-size: 24px !important;
}

.programa-expirado,
.sem-saldo {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.programa-expirado {
    background-color: #fadbd8;
    border-left: 4px solid #e74c3c;
}

.sem-saldo {
    background-color: #eaeded;
    border-left: 4px solid #7f8c8d;
}

.valor-minimo {
    background-color: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Modern Incentive Program - Bootstrap-Inspired Style */
.programa-aplicado {
    background-color: #f8f9fa;
    /* Light Background */
    border: 1px solid #dee2e6;
    /* Bootstrap Neutral Border */
    border-left: 4px solid #0d6efd;
    /* Blue Info Indicator */
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s ease;
}

.programa-aplicado p {
    margin: 0;
    font-size: 16px;
    color: #212529;
    font-weight: 500;
}

.programa-aplicado strong {
    color: #0d6efd;
    font-weight: 700;
}

/* Redesigned Primary Button (Aplicar) */
.aplicar-programa-incentivo {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-weight: 500;
}

.aplicar-programa-incentivo:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Bootstrap-Style Ghost Button for Remove */
.remover-programa-incentivo {
    background-color: #fff;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    box-shadow: none;
}

.remover-programa-incentivo:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Disabled States - Bootstrap Gray */
.aplicar-programa-incentivo:disabled,
.remover-programa-incentivo:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Checkout específico */
.programa-incentivo-checkout {
    background-color: #d5f4e6;
    border: 1px solid #27ae60;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.programa-incentivo-checkout p {
    margin: 0;
    color: #1e8449;
}

/* Shortcode saldo */
.saldo-programa-incentivo {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.saldo-programa-incentivo h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.saldo-programa-incentivo p {
    margin-bottom: 8px;
    font-size: 14px;
}

.saldo-programa-incentivo p strong {
    color: #0d6efd;
    font-size: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .programa-incentivo-container {
        padding: 15px;
        margin: 15px 0;
    }

    .programa-incentivo-info h3 {
        font-size: 16px;
    }

    .aplicar-programa-incentivo,
    .remover-programa-incentivo {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .saldo-disponivel {
        font-size: 14px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programa-incentivo-container {
    animation: fadeIn 0.3s ease-out;
}

/* Estados de loading */
.aplicar-programa-incentivo:disabled:after,
.remover-programa-incentivo:disabled:after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilos do Modal do Programa de Incentivo */
.modal-programa-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-programa-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 2% auto;
    padding: 0;
    border: 3px solid #D39C2F;
    border-radius: 15px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-programa-header {
    background: linear-gradient(135deg, #5A287F 0%, #80217E 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-programa-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 12px 12px 0 0;
}

.modal-programa-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-programa-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-programa-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-programa-body {
    padding: 30px 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-programa-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-programa-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.modal-programa-section h4 {
    color: #5A287F;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-programa-section p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-programa-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-programa-section li {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-programa-section li strong {
    color: #5A287F;
    font-weight: 600;
}

.modal-programa-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 0 0 12px 12px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.modal-programa-close-btn {
    background: linear-gradient(45deg, #5A287F, #80217E);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-programa-close-btn:hover {
    background: linear-gradient(45deg, #80217E, #5A287F);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 40, 127, 0.3);
}

/* Link "Saiba mais" */
.abrir-modal-programa {
    color: #D39C2F;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #D39C2F;
    transition: all 0.3s ease;
}

.abrir-modal-programa:hover {
    color: #B8860B;
    border-bottom-color: #B8860B;
    text-decoration: none;
}

.programa-incentivo-info-small {
    font-size: 13px;
    color: #ffffff;
    margin-top: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsivo para o modal */
@media (max-width: 768px) {
    .modal-programa-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-programa-header {
        padding: 15px 20px;
    }

    .modal-programa-header h3 {
        font-size: 20px;
    }

    .modal-programa-body {
        padding: 20px 15px;
    }

    .modal-programa-section h4 {
        font-size: 16px;
    }

    .modal-programa-footer {
        padding: 15px 20px;
    }
}

/* Novos estilos do Modal (baseado em programadeincentivo.php) */

.hero-beneficio {
    background: linear-gradient(135deg, #1f2a44, #0d6efd);
    color: #fff;
    padding: 3rem 1rem;
    position: relative;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-beneficio h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-beneficio p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.selo-incentivo {
    display: inline-block;
    background-color: #ffc107;
    color: #1f2a44;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-beneficio {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
}

.card-beneficio:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.modal-programa-body h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.modal-programa-body p {
    color: #6c757d;
}

/* Ajustes Bootstrap Grid se não estiver presente no contexto do carrinho */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding: 0 15px;
}

.text-center {
    text-align: center !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.h-100 {
    height: 100% !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.rounded {
    border-radius: 0.25rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.d-block {
    display: block !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-muted {
    color: #6c757d !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.fs-1 {
    font-size: 2.5rem !important;
}

.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.25rem;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    text-align: left;
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}