/**
 * Estilos Frontend - Kivly WooCommerce Plugin
 */

/* Información de puntos - Estilo Flat Moderno */
.kivly-points-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    border-radius: 12px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.kivly-points-info:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.3);
}

.kivly-points-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    background: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kivly-crown-icon {
    width: 20px;
    height: 20px;
    stroke: #000000;
}

.kivly-points-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}

.kivly-points-text strong {
    font-weight: 700;
    font-size: 20px;
    margin: 0 4px;
    color: #000000;
}

/* Puntos en página de producto */
.kivly-product-points {
    margin: 20px 0;
}

/* Puntos en checkout */
.kivly-checkout-points {
    margin: 16px 0;
}

/* Puntos en listado de productos (más compacto) */
.kivly-loop-points {
    margin: 10px 0 8px 0;
    padding: 10px 14px;
    font-size: 13px;
}

.kivly-loop-points .kivly-points-icon {
    width: 32px;
    height: 32px;
}

.kivly-loop-points .kivly-crown-icon {
    width: 16px;
    height: 16px;
}

.kivly-loop-points .kivly-points-text {
    font-size: 13px;
    font-weight: 500;
}

.kivly-loop-points .kivly-points-text strong {
    font-size: 15px;
    font-weight: 700;
}

/* Sección de canje - Estilo Flat Moderno */
.kivly-redeem-section {
    margin: 24px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kivly-redeem-header {
    margin-bottom: 16px;
}

.kivly-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.kivly-points-badge::before {
    content: "⭐";
    font-size: 18px;
}

.kivly-redeem-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #000000;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.kivly-redeem-btn:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

.kivly-no-points {
    color: #6b7280;
    margin: 12px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.kivly-login-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 15px;
}

.kivly-login-notice .kivly-points-icon {
    background: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.kivly-login-notice .kivly-points-icon svg {
    width: 20px;
    height: 20px;
    stroke: #d97706;
}

/* Modal de recompensas */
.kivly-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kivly-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    position: relative;
    border: 1px solid #e5e7eb;
}

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

.kivly-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.kivly-modal-close:hover,
.kivly-modal-close:focus {
    color: #000;
}

.kivly-modal-content h3 {
    margin: 0 0 24px 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

/* Grid de recompensas */
.kivly-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kivly-reward-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kivly-reward-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.kivly-reward-card h4 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.kivly-reward-cost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
}

.kivly-reward-cost::before {
    content: "⭐";
    font-size: 14px;
}

.kivly-reward-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 10px 0;
    min-height: 40px;
    line-height: 1.5;
}

.kivly-reward-redeem {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: #000000;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.kivly-reward-redeem:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.kivly-reward-redeem:disabled {
    background: #e5e7eb;
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Estados de carga y error */
.kivly-loading,
.kivly-error {
    text-align: center;
    padding: 24px;
    font-size: 15px;
    border-radius: 8px;
}

.kivly-loading {
    color: #000000;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.kivly-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .kivly-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .kivly-rewards-grid {
        grid-template-columns: 1fr;
    }

    .kivly-points-info {
        font-size: 14px;
    }

    .kivly-points-text strong {
        font-size: 16px;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.kivly-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
 * ESTILOS PARA SHORTCODES
 * ============================================ */

/* Tarjeta de producto - Shortcode */
.kivly-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.kivly-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.kivly-card-image {
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.kivly-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.kivly-card-image:hover img {
    transform: scale(1.05);
}

.kivly-card-content {
    padding: 20px;
}

.kivly-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.kivly-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kivly-card-title a:hover {
    color: #000000;
}

.kivly-card-price {
    margin: 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.kivly-card-price del {
    font-size: 18px;
    color: #9ca3af;
    margin-right: 8px;
}

.kivly-card-points {
    margin: 12px 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.kivly-card-button {
    margin-top: 16px;
}

.kivly-card-button .button {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.kivly-card-button .button:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Balance de usuario - Shortcode */
.kivly-balance-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    border-radius: 12px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.kivly-balance-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}

.kivly-balance-text strong {
    font-weight: 700;
    font-size: 20px;
    margin: 0 4px;
}

/* Mensaje de login - Shortcode */
.kivly-shortcode-login {
    padding: 16px 20px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
}

/* Mensaje genérico de ganar puntos */
.kivly-earn-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    background: rgba(0, 0, 0, 0.08);
    color: #000000;
    border-radius: 12px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Carrito vacío */
.kivly-empty-cart {
    padding: 16px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

/* Widget completo de balance - Shortcode [kivly_account_balance] */
.kivly-account-balance-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kivly-account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.kivly-greeting h3 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.kivly-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.kivly-balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--kivly-brand-color, #2271b1);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
}

.kivly-balance-badge svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.kivly-wallet-buttons {
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.kivly-wallet-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.kivly-wallet-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.kivly-wallet-btn-image {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.9;
    max-width: 140px;
}

.kivly-wallet-btn-image:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.kivly-wallet-btn-image a {
    display: block;
    text-decoration: none;
}

.kivly-wallet-btn-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 45px;
    object-fit: contain;
}

.kivly-redeem-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kivly-redeem-widget h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.kivly-redeem-info {
    background: #f9fafb;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
}

.kivly-redeem-info p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

.kivly-redeem-info strong {
    color: #111827;
    font-weight: 600;
}

.kivly-redeem-checkbox {
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.kivly-redeem-checkbox:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.kivly-redeem-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

.kivly-redeem-checkbox label strong {
    color: #111827;
    font-weight: 600;
}

.kivly-redeem-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--kivly-brand-color, #2563eb);
}

.kivly-redeem-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    line-height: 1.6;
}

/* ✅ Mostrar mensaje cuando tiene clase success */
.kivly-redeem-message.success {
    display: block !important;
}

.kivly-earn-widget {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(var(--kivly-brand-rgb, 37, 99, 235), 0.08);
    border: 1px solid rgba(var(--kivly-brand-rgb, 37, 99, 235), 0.2);
    border-radius: 10px;
    margin-top: 16px;
    font-size: 15px;
}

.kivly-earn-widget svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: var(--kivly-brand-color, #2563eb);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 4px;
}

.kivly-earn-widget span {
    color: var(--kivly-brand-color, #2563eb);
    font-weight: 500;
    line-height: 1.5;
}

.kivly-earn-widget strong {
    font-weight: 700;
    font-size: 16px;
}

/* Responsive para shortcodes */
@media (max-width: 768px) {
    .kivly-product-card {
        max-width: 100%;
    }

    .kivly-card-content {
        padding: 16px;
    }

    .kivly-card-title {
        font-size: 16px;
    }

    .kivly-card-price {
        font-size: 20px;
    }

    .kivly-account-balance-widget {
        padding: 16px;
    }

    .kivly-account-header {
        flex-direction: column;
        gap: 16px;
    }

    .kivly-wallet-actions {
        flex-direction: column;
        width: 100%;
    }

    .kivly-wallet-btn-image {
        max-width: 100%;
    }

    .kivly-greeting h3 {
        font-size: 20px;
    }

    .kivly-balance-badge {
        font-size: 16px;
        padding: 10px 16px;
    }

    .kivly-account-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .kivly-balance-badge {
        width: 100%;
        justify-content: center;
    }

    .kivly-balance-section-injected {
        padding: 20px;
    }

    .kivly-redeem-widget {
        padding: 20px;
    }

    .kivly-earning-icon {
        width: 40px;
        height: 40px;
    }

    .kivly-earning-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
 * ESTILOS PARA CHECKOUT BALANCE
 * ============================================ */
.kivly-balance-section-injected {
    display: block !important;
    margin: 20px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kivly-checkout-balance-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.kivly-checkout-sync-info {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 8px;
}

.kivly-checkout-sync-text {
    margin: 0;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.kivly-checkout-current-balance {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.kivly-checkout-balance-text {
    margin: 0;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

.kivly-checkout-balance-text strong {
    color: var(--kivly-brand-color, #000000);
    font-weight: 600;
}

.kivly-euro-equivalent {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9em;
    margin-left: 4px;
    white-space: nowrap;
}

/* En el badge del balance */
.kivly-balance-badge .kivly-euro-equivalent {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
}

/* En el mensaje de redeem */
.kivly-checkout-redeem-label .kivly-euro-equivalent,
.kivly-redeem-checkbox label .kivly-euro-equivalent {
    color: #6b7280;
    font-weight: 400;
}

/* En widgets de info */
.kivly-redeem-info .kivly-euro-equivalent {
    color: #6b7280;
    font-weight: 400;
}

.kivly-checkout-discount-applied {
    padding: 14px 16px;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kivly-discount-applied-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.kivly-discount-applied-info p {
    margin: 0;
    font-size: 14px;
}

.kivly-discount-applied-title {
    color: #065f46;
    font-weight: 600;
    font-size: 15px;
}

.kivly-discount-code-label {
    margin-top: 4px !important;
    font-size: 13px;
    color: #059669;
}

.kivly-remove-coupon-btn {
    padding: 8px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kivly-remove-coupon-btn:hover {
    background: #dc2626;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kivly-checkout-redeem-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.kivly-checkout-redeem-container:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.kivly-checkout-redeem-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--kivly-brand-color, #2563eb);
}

.kivly-checkout-redeem-label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.kivly-checkout-redeem-label strong {
    color: #111827;
    font-weight: 600;
}

.kivly-checkout-redeem-success {
    display: none !important;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    border-radius: 8px;
}

.kivly-checkout-redeem-success p {
    margin: 0;
    font-size: 14px;
    color: #065f46;
    line-height: 1.6;
}

.kivly-checkout-no-balance {
    padding: 14px 16px;
    background: #fef9c3;
    border-left: 3px solid #eab308;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kivly-checkout-no-balance p {
    margin: 0;
    font-size: 14px;
    color: #713f12;
    line-height: 1.5;
}

.kivly-checkout-not-logged {
    padding: 14px 16px;
    background: #fef9c3;
    border-left: 3px solid #eab308;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kivly-checkout-not-logged p {
    margin: 0;
    font-size: 14px;
    color: #713f12;
    line-height: 1.5;
}

.kivly-checkout-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #f3f4f6;
}

.kivly-checkout-earning {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    background: var(--kivly-brand-bg, rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border: 1px solid var(--kivly-brand-border, rgba(37, 99, 235, 0.2));
}

.kivly-earning-icon {
    background: #ffffff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.kivly-earning-icon svg {
    width: 22px;
    height: 22px;
    stroke: #2563eb;
    stroke: var(--kivly-brand-color, #2563eb);
}

.kivly-earning-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #2563eb;
    color: var(--kivly-brand-color, #2563eb);
    line-height: 1.5;
}

.kivly-earning-text strong {
    font-weight: 700;
    font-size: 16px;
}

/* Responsive para checkout */
@media (max-width: 768px) {
    .kivly-balance-section-injected {
        padding: 16px;
    }

    .kivly-discount-applied-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .kivly-remove-coupon-btn {
        width: 100%;
    }
}

/* ============================================
 * ESTILOS PARA NOTIFICACIONES
 * ============================================ */
.kivly-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.kivly-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.kivly-notification-success {
    border-left: 4px solid #46b450;
}

.kivly-notification-error {
    border-left: 4px solid #dc3232;
}

.kivly-notification-info {
    border-left: 4px solid #667eea;
}

.kivly-checkout-points.updating {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Animación de actualización de puntos en productos variables */
.kivly-points-info.kivly-updating {
    animation: kivly-pulse 0.3s ease;
}

@keyframes kivly-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
}

