/* Grow More VSL Checkout - Frontend Styles v1.0.6 */

/* =============================================
   CONTAINER
   ============================================= */
.gmvsl-container {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    position: relative;
}

/* =============================================
   BUY BUTTON
   ============================================= */
.gmvsl-button-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.gmvsl-buy-button {
    display: inline-block;
    width: 100%;
    max-width: 480px;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.gmvsl-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    animation: none !important;
}

.gmvsl-buy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gmvsl-buy-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    animation: none !important;
}

/* Subtle pulse animation */
.gmvsl-buy-button:not(:disabled) {
    animation: gmvsl-pulse 2.5s ease-in-out infinite;
}

@keyframes gmvsl-pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }
    50% {
        box-shadow: 0 4px 28px rgba(76, 175, 80, 0.4);
    }
}

/* =============================================
   TRUST ROW (below button)
   ============================================= */
.gmvsl-trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gmvsl-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: #777;
    letter-spacing: 0.01em;
}

.gmvsl-trust-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* =============================================
   LOADING STATE
   ============================================= */
.gmvsl-loading {
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gmvsl-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #e0e0e0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: gmvsl-spin 0.7s linear infinite;
}

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

/* =============================================
   CHECKOUT WRAPPER
   ============================================= */
.gmvsl-checkout-wrapper {
    margin-top: 1.5rem;
}

.gmvsl-checkout-wrapper .woocommerce-checkout {
    max-width: 100%;
}

/* =============================================
   SECURE BADGE (below checkout)
   ============================================= */
.gmvsl-secure-badge {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.82rem;
    color: #999;
}

.gmvsl-secure-badge svg {
    vertical-align: middle;
    margin-right: 4px;
}

/* =============================================
   STICKY BUTTON (mobile)
   ============================================= */
.gmvsl-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .gmvsl-sticky-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .gmvsl-sticky-bar.gmvsl-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .gmvsl-sticky-btn {
        width: 100%;
        max-width: none;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-radius: 8px;
        animation: none !important;
    }

    /* Add bottom padding to page so sticky bar doesn't cover content */
    .gmvsl-sticky-enabled {
        padding-bottom: 80px;
    }
}

/* =============================================
   GENERAL MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
    .gmvsl-container {
        padding: 0 0.75rem;
        margin: 1.5rem auto;
    }

    .gmvsl-buy-button {
        padding: 18px 24px;
        font-size: 1.1rem;
        max-width: 100%;
    }

    .gmvsl-trust-row {
        gap: 12px;
    }

    .gmvsl-trust-item {
        font-size: 0.75rem;
    }

    .gmvsl-button-wrapper {
        margin: 1.5rem 0;
    }
}

/* =============================================
   SMOOTH SCROLL TARGET
   ============================================= */
.gmvsl-checkout-wrapper[style*="display: block"],
.gmvsl-checkout-wrapper:not([style*="display: none"]) {
    scroll-margin-top: 20px;
}
