/* =====================================================
   PAGAMENTO PREMIUM - ESTILO HOTMART / LEMON SQUEEZY
   ===================================================== */

.pp-wrapper {
    max-width: 1080px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    padding: 0 20px;
    font-family: "Inter", "Roboto", sans-serif;
}

/* LEFT BOX */
.pp-checkout-box {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e3e3e6;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.pp-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pp-security-top {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f7ff;
    padding: 12px 14px;
    border: 1px solid #dbe1ff;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 25px;
}

.pp-field {
    margin-bottom: 20px;
}

.pp-field label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.pp-field input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d1d1d6;
    background: #fafafa;
    font-size: 15px;
}

.pp-field input:focus {
    background: #fff;
    border-color: #4a90ff;
    box-shadow: 0 0 0 3px rgba(74,144,255,0.25);
    outline: none;
}

.pp-btn-primary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a79ff, #3558e0);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* RIGHT BOX */
.pp-summary {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e3e3e6;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.pp-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.pp-product {
    margin-bottom: 20px;
}

.pp-product p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

.pp-price-box {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid #ececf1;
    border-bottom: 1px solid #ececf1;
    margin-bottom: 20px;
}

.pp-price-box .label {
    font-weight: 600;
    font-size: 16px;
}

.pp-price-box .value {
    font-weight: 700;
    font-size: 19px;
}

.pp-secure-area {
    text-align: center;
    margin: 20px 0;
}

.pp-stripe-logo {
    width: 120px;
    opacity: 0.7;
}

.pp-secure-text {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 6px;
}

/* CARD ICONS */
.pp-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.pp-cards img {
    height: 28px;
    max-height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    display: inline-block;
}


/* GUARANTEE */
.pp-guarantee {
    text-align: center;
    margin-top: 28px;
}

.pp-guarantee img {
    width: 100px;
}

.pp-guarantee p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 6px;
}

/* MOBILE */
@media (max-width: 900px) {
    .pp-wrapper {
        grid-template-columns: 1fr;
    }
}





/* === FULLSCREEN OVERLAY VERSÃO PREMIUM === */
#pp-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

#pp-loading-overlay.pp-active {
    opacity: 1;
    visibility: visible;
}

/* === STRIPE ULTRA LOADER (4 bars wave) === */
.pp-stripe-ultra-loader {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 40px;
}

.pp-stripe-ultra-loader span {
    width: 10px;
    height: 20px;
    background: #635bff; /* Stripe color */
    border-radius: 6px;
    animation: stripeWave 1.2s infinite cubic-bezier(.25,.46,.45,.94);
    transform-origin: center bottom;
}

/* Wave timing */
.pp-stripe-ultra-loader span:nth-child(1) { animation-delay: 0s; }
.pp-stripe-ultra-loader span:nth-child(2) { animation-delay: .15s; }
.pp-stripe-ultra-loader span:nth-child(3) { animation-delay: .30s; }
.pp-stripe-ultra-loader span:nth-child(4) { animation-delay: .45s; }

/* Animation */
@keyframes stripeWave {
    0%   { transform: scaleY(.5); opacity: .5; }
    35%  { transform: scaleY(1.8); opacity: 1; }
    70%  { transform: scaleY(.6); opacity: .65; }
    100% { transform: scaleY(.5); opacity: .5; }
}

/* Text */
.pp-loading-content p {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    animation: fadeIn .3s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
