/* ===== ESTILOS PARA TARJETAS DE PRODUCTOS EN EL CARRITO ===== */

/* Estilos para imágenes de productos en el carrito - Responsive */
.product-image-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

/* ===== UNIFICACIÓN DE COLORES PARA RADIO BUTTONS ===== */
/* Forzar color azul estándar para TODOS los radio buttons de métodos de pago */
.form-check-input[type="radio"] {
    width: 1.125em;
    height: 1.125em;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    vertical-align: top;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    transition: all 0.15s ease-in-out !important;
    flex-shrink: 0;
}

/* Estado seleccionado - color azul */
.form-check-input[type="radio"]:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: none !important;
}

/* Ícono de Font Awesome para radio buttons seleccionados */
.form-check-input[type="radio"]:checked::after,
.form-check-input[type="radio"].radio-checked-fa::after {
    content: "\f111";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 0.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.card-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-option:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.card-option input[type="radio"]:checked+.d-flex,
.card-option:has(input[type="radio"]:checked) {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
}

/* Quitar efectos de hover en el contenido de tarjetas seleccionadas */
.card-option:has(input[type="radio"]:checked) .d-flex.align-items-center.flex-grow-1,
.card-option:has(input[type="radio"]:checked) .card-info,
.card-option:has(input[type="radio"]:checked) .card-number,
.card-option:has(input[type="radio"]:checked) .card-details {
    text-decoration: none !important;
    border-bottom: none !important;
    background: transparent !important;
}

/* Quitar efectos hover/underline en texto de tarjetas seleccionadas */
.card-option:has(input[type="radio"]:checked) * {
    text-decoration: none !important;
}

.border-dashed {
    border-style: dashed !important;
    border-color: #dee2e6 !important;
}

.border-dashed:hover {
    border-style: dashed !important;
    border-color: #007bff !important;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

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

/* Estilos para imágenes de productos en el carrito - Responsive */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive para móviles */
@media (max-width: 767.98px) {
    .product-image-container {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    /* Reorganizar layout en móviles */
    .card-product-item .d-flex.flex-column.flex-md-row {
        text-align: center;
    }

    .card-product-item .d-flex.flex-column.flex-md-row>div:first-child {
        align-self: center;
    }

    /* Ajustar botones de cantidad en móviles */
    .card-product-item .d-flex.align-items-center.gap-2 {
        justify-content: center;
        margin: 10px 0;
    }

    /* Centrar precio total en móviles */
    .card-product-item .text-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Para tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .product-image-container {
        width: 75px;
        height: 75px;
    }
}

/* Para pantallas grandes mantener el tamaño original */
@media (min-width: 992px) {
    .product-image-container {
        width: 80px;
        height: 80px;
    }
}

/* Estilos para botones de cantidad */
.quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    font-weight: bold;
    min-width: 32px;
}

.quantity-display {
    min-width: 40px;
    font-weight: 500;
    font-size: 1rem;
}

/* Mejoras específicas para móviles */
@media (max-width: 767.98px) {

    /* Reorganizar elementos en móviles para mejor UX */
    .card-product-item .d-flex.flex-column.flex-md-row {
        gap: 15px !important;
    }

    /* Contenedor de información del producto */
    .card-product-item .d-flex.flex-column.flex-grow-1 {
        text-align: center;
        gap: 8px !important;
    }

    /* Agrupar controles de cantidad y eliminar en una fila */
    .quantity-controls,
    .delete-actions {
        justify-content: center !important;
    }

    /* Hacer los botones un poco más grandes en móviles */
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .quantity-display {
        min-width: 45px;
        font-size: 1.1rem;
    }

    /* Mejorar espaciado del precio */
    .price-total {
        font-size: 1.2rem !important;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #dee2e6;
    }

    /* Agrupar cantidad y eliminar en una línea */
    .card-product-item .d-flex.flex-column.flex-md-row>div:nth-child(3),
    .card-product-item .d-flex.flex-column.flex-md-row>div:nth-child(4) {
        display: inline-flex;
        justify-content: center;
        gap: 20px;
    }
}

/* Mejoras para tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .quantity-btn {
        width: 34px;
        height: 34px;
    }

    .quantity-display {
        min-width: 42px;
    }
}

/* Tarjetas de productos entre 768px-1024px */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Hacer que los botones se apilen verticalmente */
    .grand-btn.d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Botones a ancho completo e idéntico */
    .grand-btn.d-flex.flex-column.flex-md-row .btn {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Anular cualquier estilo específico que pueda afectar el ancho */
    .btn-premium.continue-shopping-btn,
    .btn-premium-dark.confirm-purchase-btn,
    .btn-disabled,
    .btn-primary-action {
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* Ajustes para tarjetas de productos */
    .card-product-item {
        padding: 1rem;
    }

    .card-product-item .d-flex.flex-column.flex-md-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Primera fila: imagen + información */
    .card-product-item .d-flex.flex-column.flex-md-row>.product-image-container,
    .card-product-item .d-flex.flex-column.flex-md-row>.d-flex.flex-column.flex-grow-1 {
        display: flex;
    }

    .card-product-item .d-flex.flex-column.flex-md-row>.product-image-container {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
        margin-right: 1rem;
    }

    .card-product-item .d-flex.flex-column.flex-md-row>.d-flex.flex-column.flex-grow-1 {
        flex: 1;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Reorganizar la primera fila como horizontal */
    .card-product-item .d-flex.flex-column.flex-md-row>.product-image-container,
    .card-product-item .d-flex.flex-column.flex-md-row>.d-flex.flex-column.flex-grow-1 {
        margin-bottom: 0;
    }

    /* Hacer que imagen e info estén lado a lado */
    .card-product-item .d-flex.flex-column.flex-md-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .card-product-item .product-image-container {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
        order: 1;
    }

    .card-product-item .d-flex.flex-column.flex-grow-1 {
        flex: 1 1 200px;
        order: 2;
        margin-left: 1rem;
    }

    .card-product-item h3 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin: 0 0 0.25rem 0;
        word-wrap: break-word;
    }

    .card-product-item .text-sm.text-muted {
        font-size: 0.85rem;
        margin: 0;
    }

    /* Segunda fila: controles */
    .card-product-item .quantity-controls {
        order: 3;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        width: auto;
    }

    .card-product-item .delete-actions {
        order: 4;
        flex: 0 0 auto;
        margin-top: 1rem;
        margin-left: 1rem;
    }

    .card-product-item .price-total {
        order: 5;
        flex: 0 0 auto;
        margin-top: 1rem;
        margin-left: auto;
        font-size: 1rem;
        font-weight: 600;
        text-align: right;
        min-width: 80px;
        white-space: nowrap;
    }

    /* Botones de cantidad mejorados */
    .card-product-item .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 0;
        border-radius: 50%;
    }

    .card-product-item .quantity-display {
        min-width: 40px;
        font-size: 1rem;
        text-align: center;
        font-weight: 500;
        padding: 0 0.5rem;
    }

    .card-product-item .delete-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
    }
}

/* Estilos para botón "Seguir Comprando" */
.btn-premium.continue-shopping-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border: 2px solid #ced4da;
    color: #495057;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    padding: 12px 24px;
    min-height: 48px;
}

.btn-premium.continue-shopping-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-premium.continue-shopping-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    border-color: #adb5bd;
    color: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-premium.continue-shopping-btn:hover::before {
    left: 100%;
}

.btn-premium.continue-shopping-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-premium.continue-shopping-btn i {
    transition: transform 0.3s ease;
}

.btn-premium.continue-shopping-btn:hover i {
    transform: scale(1.1);
}

/* Estilos para botón "Confirmar Compra" premium - Gris oscuro elegante */
.btn-premium-dark.confirm-purchase-btn {
    background: linear-gradient(135deg, #495057 0%, #343a40 50%, #212529 100%);
    border: 2px solid #343a40;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    padding: 12px 24px;
    min-height: 48px;
}

.btn-premium-dark.confirm-purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-premium-dark.confirm-purchase-btn:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%);
    border-color: #495057;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-premium-dark.confirm-purchase-btn:hover::before {
    left: 100%;
}

.btn-premium-dark.confirm-purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-premium-dark.confirm-purchase-btn i {
    transition: transform 0.3s ease;
}

.btn-premium-dark.confirm-purchase-btn:hover i {
    transform: scale(1.1);
}

.btn-premium-dark.confirm-purchase-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.25);
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%);
}

.btn-premium-dark.confirm-purchase-btn:focus:not(:hover) {
    transform: none;
}

/* Responsive para botones del checkout */
@media (max-width: 767.98px) {
    .grand-btn.d-flex.flex-column.flex-md-row {
        gap: 15px !important;
    }

    .btn-premium.continue-shopping-btn,
    .btn-premium-dark.confirm-purchase-btn {
        width: 100% !important;
        min-height: 50px;
        font-size: 1rem;
    }
}

/* Ajustes específicos para el rango 1024px-1199px - Botones apilados verticalmente */
@media (min-width: 1024px) and (max-width: 1199px) {
    .grand-btn.d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    /* Botones a ancho completo */
    .grand-btn.d-flex.flex-column.flex-md-row .btn {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Ajustes específicos para el rango 1200px-1440px - Botones horizontales simétricos */
@media (min-width: 1200px) and (max-width: 1440px) {
    .grand-btn.d-flex.flex-column.flex-md-row {
        align-items: center;
        justify-content: space-between;
        flex-direction: row !important;
    }

    /* Hacer que ambos botones tengan el mismo ancho en este rango */
    .grand-btn.d-flex.flex-column.flex-md-row .btn {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    /* Ajustes específicos para cada botón */
    .btn-premium.continue-shopping-btn,
    .btn-premium-dark.confirm-purchase-btn,
    .btn-disabled,
    .btn-primary-action {
        width: calc(50% - 0.75rem) !important;
        flex-basis: calc(50% - 0.75rem) !important;
        flex-grow: 0 !important;
    }
}

/* Ajustes para pantallas más grandes - Mantener el diseño original */
@media (min-width: 1441px) {
    .grand-btn.d-flex.flex-column.flex-md-row {
        align-items: center;
    }

    /* Botón de seguir comprando más compacto */
    .btn-premium.continue-shopping-btn {
        flex: 0 0 auto;
        min-width: 160px;
        max-width: 180px;
    }

    /* Botón de confirmar compra como principal */
    .btn-primary-action {
        flex: 1;
        min-width: 0;
    }
}

/* Estilos para botón deshabilitado - Mantener simetría con botones premium */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 50%, #495057 100%) !important;
    border: 2px solid #6c757d !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 24px;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: none;
}

.btn-disabled:hover {
    opacity: 0.6;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 50%, #495057 100%) !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.btn-disabled i {
    opacity: 0.8;
}

/* Mensaje informativo */
.text-muted .fa-info-circle {
    opacity: 0.7;
}

/* ===== ESTILOS CONSOLIDADOS PARA MÉTODOS DE PAGO DIRECTOS ===== */
.credit-card-direct-option,
.qr-payments-direct-option,
.pix-payments-direct-option,
.cash-payments-direct-option,
.pos-request-direct-option,
.cobros-ya-direct-option,
.credit-request-direct-option {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.credit-card-direct-option:hover,
.qr-payments-direct-option:hover,
.pix-payments-direct-option:hover,
.cash-payments-direct-option:hover,
.pos-request-direct-option:hover,
.cobros-ya-direct-option:hover,
.credit-request-direct-option:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.credit-card-direct-option:has(input[type="radio"]:checked),
.qr-payments-direct-option:has(input[type="radio"]:checked),
.pix-payments-direct-option:has(input[type="radio"]:checked),
.cash-payments-direct-option:has(input[type="radio"]:checked),
.pos-request-direct-option:has(input[type="radio"]:checked),
.cobros-ya-direct-option:has(input[type="radio"]:checked),
.credit-request-direct-option:has(input[type="radio"]:checked),
.pos-request-direct-option.selected,
.cobros-ya-direct-option.selected,
.credit-request-direct-option.selected {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Estados selected para todos los métodos directos */
.credit-card-direct-option.selected,
.qr-payments-direct-option.selected,
.pix-payments-direct-option.selected,
.cash-payments-direct-option.selected,
.pos-request-direct-option.selected,
.cobros-ya-direct-option.selected,
.credit-request-direct-option.selected {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Estados selected para métodos en acordeones */
.card-input.selected {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Estilos para el acordeón "Otras tarjetas" */
.other-cards-accordion {
    transition: all 0.3s ease;
}

.other-cards-accordion.selected-accordion {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.02);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.other-cards-accordion.selected-accordion .accordion-button {
    background-color: rgba(0, 123, 255, 0.05);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

/* Grid para logos informativos de tarjetas internacionales */
.international-cards-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card-logo-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: none;
    /* Sin efectos de hover - solo informativo */
}

.card-info-logo {
    max-height: 35px;
    max-width: 55px;
    object-fit: contain;
    pointer-events: none;
    /* Los logos no son interactivos */
}

/* Responsive para logos informativos */
@media (max-width: 767.98px) {
    .international-cards-grid {
        gap: 15px;
        justify-content: center;
    }

    .card-logo-info {
        padding: 10px 12px;
    }

    .card-info-logo {
        max-height: 30px;
        max-width: 45px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-info-logo {
        max-height: 32px;
        max-width: 50px;
    }
}

/* Color verde aqua para elementos destacados */
.text-aqua {
    color: #17a2b8 !important;
}

/* Estilos para billeteras digitales con logos */
.digital-wallets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    min-height: 100px;
    padding: 10px 0;
}

.digital-wallet-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.wallet-logo-container {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 120px;
    height: 80px;
}

.wallet-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.digital-wallet-option:hover .wallet-logo-container {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.digital-wallet-option:hover .wallet-logo {
    transform: scale(1.05);
}

/* Estado seleccionado para billeteras */
.digital-wallet-option.selected .wallet-logo-container {
    border-color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.05);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.digital-wallet-option.selected .wallet-logo {
    transform: scale(1.02);
}

/* Responsive para billeteras */
@media (max-width: 767.98px) {
    .digital-wallets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
        min-height: 80px;
        padding: 8px 0;
    }

    .digital-wallet-option {
        padding: 4px;
    }

    .wallet-logo-container {
        max-width: 85px;
        height: 65px;
        padding: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .digital-wallets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        min-height: 90px;
    }

    .wallet-logo-container {
        max-width: 100px;
        height: 75px;
        padding: 14px;
    }
}

@media (min-width: 992px) {
    .digital-wallets-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        min-height: 100px;
    }

    .wallet-logo-container {
        max-width: 120px;
        height: 80px;
        padding: 16px;
    }
}

/* Estilos para centros de pago con logos */
.payment-centers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    min-height: 100px;
    padding: 10px 0;
}

.payment-center-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.center-logo-container {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 120px;
    height: 80px;
}

.center-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.payment-center-option:hover .center-logo-container {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.payment-center-option:hover .center-logo {
    transform: scale(1.05);
}

/* Estado seleccionado para centros de pago - borde verde como billeteras */
.payment-center-option.selected .center-logo-container {
    border-color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.05);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.payment-center-option.selected .center-logo {
    transform: scale(1.02);
}

/* Responsive para centros de pago */
@media (max-width: 767.98px) {
    .payment-centers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px !important;
        min-height: 80px;
        padding: 8px 0;
    }

    .payment-center-option {
        padding: 4px;
    }

    .center-logo-container {
        max-width: 85px;
        height: 65px;
        padding: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .payment-centers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        min-height: 90px;
    }

    .center-logo-container {
        max-width: 100px;
        height: 75px;
        padding: 14px;
    }
}

/* Botón de agregar nueva tarjeta */
.btn-add-card {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    min-width: 200px;
    text-decoration: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.btn-add-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-add-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #fff;
    text-decoration: none;
}

.btn-add-card:hover::before {
    left: 100%;
}

.btn-add-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btn-add-card i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-add-card:hover i {
    transform: scale(1.1);
}

.btn-add-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.btn-add-card:focus:not(:hover) {
    transform: none;
}

/* Botón de login/registro para usuarios no logueados */
.btn-login-register {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    min-width: 220px;
    text-decoration: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-login-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    color: #fff;
    text-decoration: none;
}

.btn-login-register:hover::before {
    left: 100%;
}

.btn-login-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.btn-login-register i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-login-register:hover i {
    transform: scale(1.1);
}

/* Responsive para botones de tarjetas */
@media (max-width: 767.98px) {
    .btn-add-card {
        font-size: 0.9rem;
        padding: 12px 16px !important;
        min-width: 180px;
    }

    .btn-add-card i {
        font-size: 0.8rem;
    }

    .btn-add-card span {
        font-size: 0.9rem;
    }

    .btn-login-register {
        font-size: 0.9rem;
        min-width: 200px;
        padding: 12px 20px !important;
    }

    .btn-login-register i {
        font-size: 0.8rem;
    }

    /* Ajustes para el contenedor de login en móviles */
    .btn-login-register span {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .btn-add-card {
        font-size: 1rem;
        min-width: 220px;
    }

    .btn-login-register {
        font-size: 1rem;
        min-width: 240px;
    }
}

/* Estilos para el mensaje de login de usuarios no logueados */
.text-center p.lh-base {
    max-width: 280px;
    margin: 0 auto 1rem auto;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .text-center p.lh-base {
        max-width: 250px;
        font-size: 0.9rem;
    }

    .text-center h6.fw-medium {
        font-size: 1.1rem;
    }

    .text-center .fa-user-circle {
        font-size: 2.5rem !important;
    }
}

/* Footer promocional para tarjetas */
.credit-card-promo-footer {
    background-color: rgba(23, 162, 184, 0.05);
    border-radius: 6px;
    padding: 12px 16px;
    border: 1px solid rgba(23, 162, 184, 0.1);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Footer promocional minimalista sin fondo */
.credit-card-promo-footer-minimal {
    margin-top: auto;
    padding: 8px 0 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
}

/* ===== ACORDEONES - FONT AWESOME ICONS ===== */

/* Ajustar el contenedor para que el footer se posicione al final */
.credit-card-direct-option .flex-grow-1 {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.credit-card-direct-option .form-check-label {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive para el componente de tarjetas directas */
@media (max-width: 767.98px) {
    .credit-card-promo-footer {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .credit-card-promo-footer-minimal {
        padding: 6px 0 0 0;
        font-size: 0.8rem;
    }
}

/* ===== ESTILOS UNIFICADOS PARA MÉTODOS DE PAGO ===== */
/* Esta sección consolida todos los estilos de radio buttons y form-check */

/* ===== ACORDEONES ===== */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    transition: all 0.2s ease;
}

.accordion-item .form-check {
    align-items: center !important;
    min-height: 3.5rem !important;
    gap: 0 !important;
}

.accordion-item .form-check-input[type="radio"] {
    margin-left: 1.25rem !important;
    position: relative;
}

.accordion-item .form-check-label {
    margin-bottom: 0 !important;
    cursor: pointer;
    flex-grow: 1;
}

/* Acordeones con selección activa */
.accordion-item.has-active-selection {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.02) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
    transition: all 0.3s ease !important;
}

.accordion-item.has-active-selection .accordion-button {
    background-color: rgba(0, 123, 255, 0.05) !important;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1) !important;
    color: #0d6efd !important;
    font-weight: 500 !important;
}

/* ===== MÉTODOS DIRECTOS ===== */
/* ===== MÉTODOS DIRECTOS - YA DEFINIDOS ANTERIORMENTE ===== */

/* ===== ELEMENTOS SELECCIONADOS ===== */
.digital-wallet-option.selected .wallet-logo-container,
.payment-center-option.selected .center-logo-container,
.card-input.selected {
    border-color: #4CAF50 !important;
    background-color: rgba(76, 175, 80, 0.05);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.digital-wallet-option.selected,
.payment-center-option.selected {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.card-input.selected {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* ===== HOVER EFFECTS ===== */
.digital-wallet-option:hover,
.payment-center-option:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.card-input:hover {
    transform: translateY(-0.5px);
    transition: all 0.2s ease;
}

.other-cards-accordion.selected-accordion {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.02);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

/* ===== CHECKBOX "ES PARA REGALO" ===== */
#cart_gift.form-check-input[type="checkbox"] {
    width: 1em !important;
    height: 1em !important;
    margin-top: 0.25em !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    vertical-align: top !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25em !important;
    transition: all 0.15s ease-in-out !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

#cart_gift.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: none !important;
}

#cart_gift.form-check-input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 0.75em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.card-body .form-check:has(#cart_gift) {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    align-items: center !important;
}

/* ===== ACORDEONES - SECCIÓN CONSOLIDADA ===== */

/* ===== ESTILOS PARA FORMULARIOS EMBEBIDOS ===== */

/* Contenedores de formularios embebidos */
#card-login-form,
#card-register-form {
    background-color: #f8f9fa;
    border-top: 3px solid #0d6efd;
    transition: all 0.3s ease;
}

#card-login-form.d-none,
#card-register-form.d-none {
    display: none !important;
}

/* Títulos de formularios */
#card-login-form h3,
#card-register-form h3 {
    color: #0d6efd;
    font-weight: 600;
}

/* Botones de cerrar */
.btn-close-card-login-form,
.btn-close-card-register-form {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.btn-close-card-login-form:hover,
.btn-close-card-register-form:hover {
    color: #dc3545;
}

/* Enlaces de intercambio entre formularios */
.btn-switch-to-register,
.btn-switch-to-login {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}

.btn-switch-to-register:hover,
.btn-switch-to-login:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Separador OR mejorado */
.or-separator-wrapper {
    position: relative;
}

.or-separator-wrapper .line {
    height: 1px;
    background-color: #dee2e6;
}

.or-separator-wrapper .or-text {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0 1rem;
    font-weight: 500;
}

/* Campos de formulario mejorados */
#card-login-form .form-control,
#card-register-form .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#card-login-form .form-control:focus,
#card-register-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Botones de acción premium oscuro - Estilo del botón Confirmar Compra */
#card-login-form .btn-secondary,
#card-register-form .btn-secondary {
    background: linear-gradient(135deg, #495057 0%, #343a40 50%, #212529 100%);
    border: 2px solid #343a40;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: 8px;
}

#card-login-form .btn-secondary::before,
#card-register-form .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

#card-login-form .btn-secondary:hover,
#card-register-form .btn-secondary:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%);
    border-color: #495057;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

#card-login-form .btn-secondary:hover::before,
#card-register-form .btn-secondary:hover::before {
    left: 100%;
}

#card-login-form .btn-secondary:active,
#card-register-form .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#card-login-form .btn-secondary:focus,
#card-register-form .btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.25);
    background: linear-gradient(135deg, #6c757d 0%, #495057 50%, #343a40 100%);
}

#card-login-form .btn-secondary:focus:not(:hover),
#card-register-form .btn-secondary:focus:not(:hover) {
    transform: none;
}

#card-login-form .btn-secondary:disabled,
#card-register-form .btn-secondary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 50%, #495057 100%) !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* Alertas mejoradas */
#login-error-message,
#register-error-message {
    border-radius: 8px;
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
    font-size: 0.875rem;
}

#register-success-message {
    border-radius: 8px;
    border: none;
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 4px solid #198754;
    font-size: 0.875rem;
}

/* Checkbox de términos y condiciones mejorado */
#card-register-form .form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
}

#register_terms.form-check-input[type="checkbox"] {
    width: 1em !important;
    height: 1em !important;
    margin-top: 0.25em !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    vertical-align: top !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.25em !important;
    transition: all 0.15s ease-in-out !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

#register_terms.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: none !important;
}

#register_terms.form-check-input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 0.75em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

#register_terms.form-check-input[type="checkbox"]:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
}

#card-register-form .form-check-label {
    flex: 1 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    font-size: 0.875rem !important;
    color: #6c757d !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

#card-register-form .form-check-label a {
    color: #0d6efd !important;
    text-decoration: none !important;
}

#card-register-form .form-check-label a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Responsive para formularios embebidos */
@media (max-width: 767.98px) {
    #card-login-form,
    #card-register-form {
        padding: 1rem !important;
    }

    #card-login-form h3,
    #card-register-form h3 {
        font-size: 1rem;
    }

    .or-separator-wrapper .or-text {
        font-size: 0.8rem;
        padding: 0 0.75rem;
    }

    #card-register-form .form-check-label {
        font-size: 0.8rem !important;
    }

    #register_terms.form-check-input[type="checkbox"] {
        width: 0.9em !important;
        height: 0.9em !important;
    }
}

/* ===== ESTILOS PARA DIV DE EFECTIVO ===== */
#div-change {
    transition: all 0.3s ease;
    border-top: 2px solid #28a745 !important;
    background-color: rgba(40, 167, 69, 0.05);
}

/* ===== ESTILOS PARA PICKUP DE SUCURSALES ===== */
#pickupInStore {
    transition: all 0.3s ease;
    border-top: 2px solid #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
}

#pickupInStore h5 {
    color: #0d6efd;
    font-weight: 600;
}

#pickupInStore .form-select {
    border: 2px solid #0d6efd;
    border-radius: 8px;
}

#pickupInStore .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.store-hours {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0d6efd;
}

.store-hours h6 {
    color: #495057;
    margin-bottom: 0.75rem;
}

.store-hours .d-flex {
    font-size: 0.875rem;
    color: #6c757d;
}

.store-hours .fw-medium {
    color: #495057;
}

#div-change h3 {
    color: #28a745;
    font-weight: 600;
}

#cash-amount {
    border: 2px solid #28a745;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

#cash-amount:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#change-amount {
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive para el div de efectivo */
@media (max-width: 767.98px) {
    #div-change {
        padding: 1rem !important;
    }

    #div-change h3 {
        font-size: 1rem;
    }

    #cash-amount {
        font-size: 1rem;
    }

    #change-amount {
        font-size: 0.9rem;
    }
}

.form-check {
    padding-left: 0em !important;
}

.payment-method-text {
    margin-left: 0.40rem !important;
}

/* ===== ESTILOS FINALES - CONSOLIDADOS ===== */
