/* Estilos para la página de checkout */
.checkout-page {
    background-color: #fff;
}

.checkout-form {
    background: #fff;
    padding: 24px 18px 18px 15px;
    border: 1px solid #ebebeb;
    border-radius: 0;
    box-shadow: 0px 5px 14.25px 0.75px rgba(36, 11, 12, 0.05);
    margin-bottom: 15px;
}

.checkout-form h3 {
    margin-bottom: 12px;
    color: #1A71B9;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.checkout-form .form-group {
    margin-bottom: 10px;
}

.checkout-form label {
    font-size: 13px;
    line-height: 18px;
    color: #1A71B9;
    font-weight: 400;
    margin-bottom: 4px;
    display: block;
}

.checkout-form .form-control {
    background-color: #ffffff;
    height: 32px;
    width: 100%;
    padding-left: 10px;
    line-height: 18px;
    letter-spacing: 0.3px;
    font-size: 13px;
    font-weight: 400;
    outline: none;
    border: 1px solid #ebebeb;
    color: #3D3E3F;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.checkout-form .form-control:focus {
    border: 1px solid #DE208B;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.checkout-form .form-control.error {
    border-color: #dc2626;
    background-color: #fff7f7;
}

.validation-hint {
    margin-top: 3px;
    font-size: 10px;
    color: #b91c1c; /* rojo */
    font-weight: 500;
}

.checkout-form .btn-primary {
    font-weight: 700;
    color: #ffffff;
    line-height: 18px;
    font-size: 13px;
    text-transform: uppercase;
    padding: 5px 15px;
    background-color: #DE208B;
    border: none;
    z-index: 1;
    position: relative;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.checkout-form .btn-primary:before {
    content: "";
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #1A71B9;
    z-index: -1;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.checkout-form .btn-primary:hover:before {
    width: 100%;
}

/* Resumen del pedido */
.checkout-order-summary {
    background: #fff;
    padding: 24px 18px 18px 15px;
    border: 1px solid #ebebeb;
    border-radius: 0;
    box-shadow: 0px 5px 14.25px 0.75px rgba(36, 11, 12, 0.05);
    position: sticky;
    top: 20px;
}

.checkout-order-summary h3 {
    margin-bottom: 12px;
    color: #1A71B9;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 8px;
}

/* Lista de items del checkout */
.checkout-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 5px;
}

.checkout-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0 6px 0;
    border-bottom: 1px solid #ebebeb;
    -webkit-transition: background-color 0.3s ease-in-out;
    -moz-transition: background-color 0.3s ease-in-out;
    -ms-transition: background-color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
}

.checkout-item:hover {
    background-color: #f9f9f9;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    position: relative;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: visible;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.checkout-item-image img {
    width: 100%;
    height: 50px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.checkout-item:hover .checkout-item-image img {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.checkout-item-details {
    flex: 1;
    overflow: hidden;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1A71B9;
    margin: 0 0 3px 0;
    line-height: 1.2;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

.checkout-item:hover .checkout-item-name {
    color: #DE208B;
}

.checkout-item-brand {
    font-size: 11px;
    color: #6e6e6e;
    margin: 0 0 4px 0;
    font-weight: 300;
}

.checkout-item-options {
    margin-bottom: 4px;
}

.checkout-item-options small {
    color: #6e6e6e;
    font-size: 10px;
    font-weight: 300;
}

.checkout-item-quantity {
    font-size: 11px;
    color: #6e6e6e;
    margin-bottom: 3px;
    font-weight: 300;
}

.checkout-item-price {
    margin-bottom: 3px;
    font-size: 12px;
}

.checkout-item-price .original-price {
    text-decoration: line-through;
    color: #6e6e6e;
    font-size: 13px;
    margin-right: 5px;
    font-weight: 300;
}

.checkout-item-price .discounted-price {
    color: #DE208B;
    font-weight: 500;
    font-size: 12px;
}

.checkout-item-subtotal {
    font-size: 12px;
    color: #1A71B9;
    font-weight: 500;
}

/* Etiquetas de eventos en checkout */
.checkout-event-label {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.4em;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 3;
    max-width: 50px;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.checkout-event-label.image-only {
    background: none !important;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.checkout-event-label.image-only img {
    width: auto;
    height: 18px;
    max-width: 50px;
}

/* Badge de categoría en checkout */
.checkout-item-image .category-type-badge {
    position: static;
    margin-top: 3px;
    width: 100%;
    font-size: 0.5em;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Totales del checkout */
.checkout-totals {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 0;
    margin-bottom: 10px;
    border: 1px solid #ebebeb;
}

.checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 18px;
    color: #6e6e6e;
    font-weight: 300;
}

.checkout-totals-row:last-child {
    margin-bottom: 0;
}

.checkout-totals-row.shipping {
    color: #6e6e6e;
    font-style: italic;
    font-weight: 300;
}

.checkout-totals-row.total {
    font-size: 15px;
    font-weight: 600;
    color: #1A71B9;
    padding-top: 8px;
    border-top: 2px solid #1A71B9;
    margin-top: 8px;
    margin-bottom: 3px;
    line-height: 20px;
    background: linear-gradient(90deg, rgba(26, 113, 185, 0.05) 0%, rgba(222, 32, 139, 0.05) 100%);
    padding: 8px 6px 6px 6px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 4px;
}

.checkout-totals-row.tax-included {
    font-size: 10px;
    color: #6e6e6e;
    font-style: italic;
    margin-top: 3px;
    margin-bottom: 0;
    border-top: none;
    padding-top: 0;
}

.checkout-totals-row.tax-included i {
    color: #1A71B9;
    margin-right: 2px;
}

.checkout-totals-divider {
    height: 1px;
    background: #ebebeb;
    margin: 8px 0 5px 0;
}

/* Información adicional */
.checkout-info {
    background: #f5f5f5;
    padding: 17px 20px;
    border-radius: 0;
    border: 1px solid #ebebeb;
    border-left: 3px solid #1A71B9;
}

.checkout-info p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #6e6e6e;
    font-weight: 300;
    line-height: 26px;
}

.checkout-info p:last-child {
    margin-bottom: 0;
}

.checkout-info i {
    margin-right: 5px;
    color: #1A71B9;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

.checkout-info:hover i {
    color: #DE208B;
}

/* Estilos para el checkbox de guardar dirección */
.save-address-container {
    background: #f8f9ff;
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.save-address-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1A71B9;
    z-index: 1;
}

.save-address-container:hover {
    border-color: #1A71B9;
    box-shadow: 0 5px 20px rgba(26, 113, 185, 0.1);
    transform: translateY(-2px);
}

.save-address-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.save-address-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.save-address-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.checkbox-custom:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.save-address-checkbox input[type="checkbox"]:checked+.save-address-label .checkbox-custom {
    background: #1A71B9;
    border-color: #1A71B9;
    transform: scale(1.1);
}

.save-address-checkbox input[type="checkbox"]:checked+.save-address-label .checkbox-custom:after {
    opacity: 1;
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.checkbox-icon {
    color: #1A71B9;
    font-size: 20px;
    margin-right: 10px;
    margin-top: 1px;
    flex-shrink: 0;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.save-address-checkbox input[type="checkbox"]:checked+.save-address-label .checkbox-icon {
    color: #DE208B;
    transform: scale(1.1);
}

.checkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.checkbox-text strong {
    color: #1A71B9;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.checkbox-text small {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.save-address-checkbox input[type="checkbox"]:checked+.save-address-label .checkbox-text strong {
    color: #DE208B;
}

.save-address-info {
    background: rgba(26, 113, 185, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    border-left: 3px solid #1A71B9;
    position: relative;
    z-index: 2;
}

.save-address-info small {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    margin: 0;
}

.save-address-info i {
    color: #1A71B9;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 12px;
}

/* Animación para cuando aparece la sección */
#save-address-option {
    transition: all 0.3s ease;
    -webkit-animation: slideInFromTop 0.4s ease-out;
    -moz-animation: slideInFromTop 0.4s ease-out;
    -ms-animation: slideInFromTop 0.4s ease-out;
    -o-animation: slideInFromTop 0.4s ease-out;
    animation: slideInFromTop 0.4s ease-out;
}

#save-address-option.hidden {
    display: none !important;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes slideInFromTop {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

/* Hover effects */
.save-address-label:hover .checkbox-custom {
    border-color: #1A71B9;
    transform: scale(1.05);
}

.save-address-label:hover .checkbox-icon {
    transform: scale(1.05);
    color: #DE208B;
}

.save-address-label:hover .checkbox-text strong {
    color: #DE208B;
}

/* Estados de focus para accesibilidad */
.save-address-checkbox input[type="checkbox"]:focus+.save-address-label .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(26, 113, 185, 0.2);
}

/* Botones de acción en checkout - NUEVA DISTRIBUCIÓN */
.checkout-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

/* Botón principal de acción (Openpay) - ocupa renglón completo */
.checkout-action-buttons .action-btn-full {
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(26, 113, 185, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    order: 1;
}

/* Botón secundario (Volver al carrito) - ocupa renglón completo pero más pequeño */
.checkout-action-buttons .action-btn-secondary {
    width: 100%;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    padding: 7px 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    order: 2;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-action-buttons .action-btn-secondary:hover,
.checkout-action-buttons .action-btn-secondary:focus {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.checkout-action-buttons .action-btn-secondary i {
    font-size: 12px;
}

/* Estilos específicos para botones de Openpay - ACTUALIZADOS */
.btn-openpay.action-btn-full {
    background: linear-gradient(135deg, #00C3E6 0%, #0066CC 100%) !important;
    border: 2px solid #00C3E6 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 195, 230, 0.4) !important;
}

.btn-openpay.action-btn-full:hover,
.btn-openpay.action-btn-full:focus {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%) !important;
    border-color: #0066CC !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 195, 230, 0.5) !important;
}

.btn-openpay.action-btn-full .openpay-logo {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.btn-openpay.action-btn-full .openpay-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.btn-openpay.action-btn-full .openpay-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1;
    margin-top: 1px;
}

/* Mantener los estilos existentes de los botones antiguos para compatibilidad */
.checkout-action-buttons .action-btn {
    min-width: 180px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 0px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(26, 113, 185, 0.07);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-action-buttons .btn-primary.action-btn {
    background: linear-gradient(90deg, #DE208B 0%, #1A71B9 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(222, 32, 139, 0.08);
    font-size: 18px;
    font-weight: 700;
}

.checkout-action-buttons .btn-primary.action-btn:hover,
.checkout-action-buttons .btn-primary.action-btn:focus {
    background: linear-gradient(90deg, #1A71B9 0%, #DE208B 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.checkout-action-buttons .btn-outline-primary.action-btn {
    background: #fff;
    border: 2px solid #DE208B;
    color: #DE208B;
    box-shadow: none;
}

.checkout-action-buttons .btn-outline-primary.action-btn:hover,
.checkout-action-buttons .btn-outline-primary.action-btn:focus {
    background: #DE208B;
    color: #fff;
    border-color: #DE208B;
    transform: translateY(-2px) scale(1.03);
}

.checkout-action-buttons .btn-outline-secondary.action-btn {
    background: #fff;
    border: 2px solid #1A71B9;
    color: #1A71B9;
    box-shadow: none;
}

.checkout-action-buttons .btn-outline-secondary.action-btn:hover,
.checkout-action-buttons .btn-outline-secondary.action-btn:focus {
    background: #f5faff;
    color: #DE208B;
    border-color: #DE208B;
    transform: translateY(-2px) scale(1.03);
}

.checkout-action-buttons .action-btn i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Animación de pulso para el botón de Openpay */
.btn-openpay.pulse {
    animation: openpayPulse 2s infinite;
}

@keyframes openpayPulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 195, 230, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(0, 195, 230, 0.6);
    }

    100% {
        box-shadow: 0 6px 20px rgba(0, 195, 230, 0.4);
    }
}

/* Responsive para botones de acción - ACTUALIZADO */
@media (max-width: 768px) {
    /* Ocultar solo el contenedor de botones de acción del formulario en mobile */
    .checkout-form .checkout-action-buttons {
        display: none !important;
    }

    .checkout-action-buttons {
        gap: 10px;
        margin-top: 15px;
    }

    .checkout-action-buttons .action-btn-full {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 52px;
    }

    .checkout-action-buttons .action-btn-secondary {
        font-size: 13px;
        padding: 8px 14px;
        min-height: 38px;
    }

    .btn-openpay.action-btn-full .openpay-logo {
        height: 24px;
    }

    .btn-openpay.action-btn-full .openpay-text {
        font-size: 15px;
    }

    .btn-openpay.action-btn_full .openpay-subtitle {
        font-size: 11px;
    }

    .checkout-action-buttons .action-btn-secondary i {
        font-size: 11px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .checkout-action-buttons .action-btn-full {
        font-size: 15px;
        padding: 12px 14px;
        min-height: 48px;
    }

    .checkout-action-buttons .action-btn-secondary {
        font-size: 12px;
        padding: 7px 12px;
        min-height: 36px;
    }

    .btn-openpay.action-btn-full .openpay-logo {
        height: 22px;
    }

    .btn-openpay.action-btn-full .openpay-text {
        font-size: 14px;
    }
}

/* Estilos específicos para botones de Openpay */
.btn-openpay {
    background: linear-gradient(135deg, #00C3E6 0%, #0066CC 100%);
    border: 2px solid #00C3E6;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 195, 230, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
}

.btn-openpay: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-openpay:hover:before {
    left: 100%;
}

.btn-openpay:hover,
.btn-openpay:focus {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    border-color: #0066CC;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 195, 230, 0.4);
}

.btn-openpay:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 195, 230, 0.3);
}

.btn-openpay .openpay-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.btn-openpay:hover .openpay-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.btn-openpay .openpay-text {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.btn-openpay .openpay-subtitle {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1;
    margin-top: 1px;
}

/* Variante para botón principal (más grande) */
.btn-openpay.btn-openpay-primary {
    font-size: 18px;
    padding: 16px 24px;
    min-height: 58px;
    box-shadow: 0 6px 20px rgba(0, 195, 230, 0.4);
}

.btn-openpay.btn-openpay-primary .openpay-logo {
    height: 26px;
}

.btn-openpay.btn-openpay-primary .openpay-text {
    font-size: 16px;
}

/* Animación de pulso para llamar la atención */
.btn-openpay.pulse {
    animation: openpayPulse 2s infinite;
}

@keyframes openpayPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 195, 230, 0.3);
    }

    50% {
        box-shadow: 0 6px 25px rgba(0, 195, 230, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 195, 230, 0.3);
    }
}

/* Asegurar que los botones de Openpay no hereden estilos de PyAfi */
.btn-openpay.action-btn {
    background: linear-gradient(135deg, #00C3E6 0%, #0066CC 100%) !important;
    border: 2px solid #00C3E6 !important;
    color: #ffffff !important;
}

.btn-openpay.action-btn:hover,
.btn-openpay.action-btn:focus {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%) !important;
    border-color: #0066CC !important;
    color: #ffffff !important;
}

/* Responsive para botones de Openpay */
@media (max-width: 768px) {
    .btn-openpay {
        font-size: 15px;
        padding: 12px 16px;
        min-height: 50px;
    }

    .btn-openpay .openpay-logo {
        height: 22px;
    }

    .btn-openpay.btn-openpay-primary {
        font-size: 16px;
        padding: 14px 20px;
        min-height: 54px;
    }

    .btn-openpay.btn-openpay-primary .openpay-logo {
        height: 24px;
    }
}

.mini-spinner,
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    display: inline-block;
    animation: spin .8s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

.btn-openpay.loading {
    opacity: .75;
    position: relative;
}

.btn-openpay.loading .btn-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-openpay[disabled] {
    cursor: not-allowed;
    filter: grayscale(.4);
}

#shipping-cost-wrapper.loading #shipping-cost-amount {
    opacity: .4;
}

/* Estilos compactos para sección de direcciones guardadas en checkout */
.saved-addresses-section {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.saved-addresses-section h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #1A71B9;
    font-weight: 500;
}

.saved-addresses-section .text-muted {
    font-size: 11px;
    margin-bottom: 8px;
}

.saved-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.saved-addresses-grid .address-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 11px;
}

.saved-addresses-grid .address-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.saved-addresses-grid .address-card.selected {
    border-color: #1A71B9;
    background: #f0f7ff;
    box-shadow: 0 0 0 2px rgba(26, 113, 185, 0.2);
}

.saved-addresses-grid .address-card.primary {
    border-color: #DE208B;
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.address-card-header input[type="radio"] {
    margin: 0;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.address-card-header strong {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.address-card-header .primary-badge {
    background-color: #DE208B;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
}

.address-card-body {
    font-size: 10px;
    color: #666;
}

.address-card-body p {
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.address-card-body i {
    margin-right: 3px;
    color: #1A71B9;
    font-size: 9px;
}

.address-card.new-address {
    border-style: dashed;
    border-color: #1A71B9;
}

.address-card.new-address .address-card-header strong {
    color: #1A71B9;
}

.address-card.new-address .address-card-header i {
    color: #1A71B9;
}

.address-card.new-address .address-card-body .text-muted {
    font-size: 10px;
    color: #888;
}

/* Responsive para tarjetas de direcciones */
@media (max-width: 768px) {
    .saved-addresses-grid {
        grid-template-columns: 1fr;
    }
}