/* Shoptet Button Redesign - Teal Gradient Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Target the specific next-step container */
.next-step.next-step--cart {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px 0 !important;
    padding: 0 !important;
}

/* Base button styling for both buttons */
.next-step.next-step--cart .btn {
    background: linear-gradient(135deg, #2ecdb6, #34d399) !important;
    border: none !important;
    color: #1e293b !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(46, 205, 182, 0.25) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-height: 50px !important;
    cursor: pointer !important;
}

/* Back button (secondary style) */
.next-step.next-step--cart .btn.next-step-back {
    background: linear-gradient(135deg, rgba(46, 205, 182, 0.15), rgba(52, 211, 153, 0.15)) !important;
    border: 2px solid #2ecdb6 !important;
    color: #2ecdb6 !important;
    box-shadow: 0 4px 12px rgba(46, 205, 182, 0.15) !important;
}

/* Continue button (primary style) - keeps the full gradient */
.next-step.next-step--cart .btn.btn-conversion.next-step-forward {
    background: linear-gradient(135deg, #2ecdb6, #34d399) !important;
    color: #1e293b !important;
    box-shadow: 0 4px 15px rgba(46, 205, 182, 0.35) !important;
    font-weight: 900 !important;
    position: relative !important;
}

/* Add subtle shine effect to primary button */
.next-step.next-step--cart .btn.btn-conversion.next-step-forward::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s !important;
}

.next-step.next-step--cart .btn.btn-conversion.next-step-forward:hover::before {
    left: 100% !important;
}

/* Hover effects */
.next-step.next-step--cart .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(46, 205, 182, 0.4) !important;
}

.next-step.next-step--cart .btn.next-step-back:hover {
    background: linear-gradient(135deg, rgba(46, 205, 182, 0.25), rgba(52, 211, 153, 0.25)) !important;
    border-color: #34d399 !important;
    color: #34d399 !important;
    box-shadow: 0 8px 25px rgba(46, 205, 182, 0.25) !important;
}

.next-step.next-step--cart .btn.btn-conversion.next-step-forward:hover {
    background: linear-gradient(135deg, #34d399, #2ecdb6) !important;
    box-shadow: 0 8px 30px rgba(46, 205, 182, 0.5) !important;
}

/* Active/pressed state */
.next-step.next-step--cart .btn:active {
    transform: translateY(-1px) !important;
    transition: transform 0.1s !important;
}

/* Focus states for accessibility */
.next-step.next-step--cart .btn:focus {
    outline: 3px solid rgba(46, 205, 182, 0.5) !important;
    outline-offset: 2px !important;
}

/* Add icons to buttons (optional enhancement) */
.next-step.next-step--cart .btn.next-step-back .continue-shopping::before {
    content: '←' !important;
    margin-right: 8px !important;
    font-weight: bold !important;
}

.next-step.next-step--cart .btn.btn-conversion.next-step-forward .order-button-text::after {
    content: '→' !important;
    margin-left: 8px !important;
    font-weight: bold !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .next-step.next-step--cart {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 16px !important;
    }
    
    .next-step.next-step--cart .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        min-height: 54px !important;
    }
    
    /* Ensure primary button appears second on mobile */
    .next-step.next-step--cart .btn.btn-conversion.next-step-forward {
        order: 2 !important;
    }
    
    .next-step.next-step--cart .btn.next-step-back {
        order: 1 !important;
    }
}

@media (max-width: 480px) {
    .next-step.next-step--cart .btn {
        font-size: 14px !important;
        padding: 14px 18px !important;
    }
}

/* Animation for button appearance */
@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.next-step.next-step--cart .btn {
    animation: buttonFadeIn 0.5s ease-out !important;
}

.next-step.next-step--cart .btn.next-step-back {
    animation-delay: 0.1s !important;
}

.next-step.next-step--cart .btn.btn-conversion.next-step-forward {
    animation-delay: 0.2s !important;
}

/* Override any conflicting Shoptet styles */
.next-step.next-step--cart .btn.btn-lg {
    font-size: 14px !important;
    padding: 14px 24px !important;
    line-height: 1.4 !important;
}

/* Ensure text styling within spans */
.next-step.next-step--cart .btn span {
    font-weight: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
}

/* Disable button states that might conflict */
.next-step.next-step--cart .btn:disabled,
.next-step.next-step--cart .btn.disabled {
    opacity: 0.6 !important;
    transform: none !important;
    cursor: not-allowed !important;
}

.next-step.next-step--cart .btn:disabled:hover,
.next-step.next-step--cart .btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(46, 205, 182, 0.15) !important;
}