/* Container - center align */
.aa-spaypal-form {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 100%;
}

/* Base button */
.aa-spaypal-btn {
    cursor: pointer;
    border: none;
    font-weight: 700;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 22px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

/* PayPal Icon */
.aa-spaypal-btn-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('https://www.paypalobjects.com/webstatic/icon/pp258.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 18px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
    flex-shrink: 0;
}

/* Classic style - warm gold gradient */
.aa-spaypal-form.classic .aa-spaypal-btn {
    background: linear-gradient(135deg, #FFC439 0%, #FFB347 100%);
    color: #222;
    box-shadow:
        0 8px 25px rgba(255, 180, 50, 0.4),
        inset 0 -4px 10px rgba(255, 230, 120, 0.6);
}

.aa-spaypal-form.classic .aa-spaypal-btn:hover,
.aa-spaypal-form.classic .aa-spaypal-btn:focus {
    box-shadow:
        0 12px 40px rgba(255, 180, 50, 0.65),
        inset 0 -6px 12px rgba(255, 240, 140, 0.8);
    transform: scale(1.07);
    outline: none;
}

/* Elegant style - deep blue gradient */
.aa-spaypal-form.elegant .aa-spaypal-btn {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: #f9f9f9;
    box-shadow:
        0 10px 30px rgba(0, 96, 186, 0.5),
        inset 0 -5px 15px rgba(50, 90, 160, 0.7);
    letter-spacing: 1.5px;
}

.aa-spaypal-form.elegant .aa-spaypal-btn:hover,
.aa-spaypal-form.elegant .aa-spaypal-btn:focus {
    box-shadow:
        0 14px 45px rgba(0, 94, 166, 0.8),
        inset 0 -7px 18px rgba(60, 110, 185, 0.85);
    transform: scale(1.1);
    outline: none;
}

/* Hover animation: subtle glowing ripple */
.aa-spaypal-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 80%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    border-radius: 50%;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.aa-spaypal-btn:hover::before,
.aa-spaypal-btn:focus::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Text on top of ripple */
.aa-spaypal-btn-text {
    position: relative;
    z-index: 2;
}

/* Custom style image button */
.aa-spaypal-btn.custom img.aa-spaypal-custom-btn-img {
    max-height: 52px;
    max-width: 260px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .aa-spaypal-btn {
        font-size: 18px;
        padding: 14px 32px;
        min-width: 140px;
    }

    .aa-spaypal-btn-icon {
        width: 24px;
        height: 24px;
        margin-right: 14px;
    }
}
