/* Custom Payment Gateway: button, status line and result dialog (membership page + return page). */
.gsep-pg-wrap { margin-top: 10px; width: 100%; }
.gsep-pg-wrap .gsep-pg-pay {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100% !important; height: auto !important; min-height: 45px !important; padding: 10px 16px !important;
    line-height: 1.3 !important; font-size: 16px !important; font-weight: 600 !important;
    text-transform: none !important; letter-spacing: normal !important;
    border-radius: 4px !important; border: 0 !important; background: #1f2937 !important; color: #fff !important;
    box-sizing: border-box !important; white-space: normal !important; cursor: pointer;
    transition: background .15s, transform .1s;
}
.gsep-pg-wrap .gsep-pg-pay:hover { background: #111827 !important; }
.gsep-pg-wrap .gsep-pg-pay:active { transform: scale(.985); }
.gsep-pg-wrap .gsep-pg-pay:disabled { opacity: .7; cursor: wait; }

/* Status line under the button */
.gsep-pg-status {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px;
    border-radius: 8px; font-size: 14px; line-height: 1.4; text-align: left;
    background: #f3f4f6; color: #374151; animation: gsepPgFade .25s ease both;
}
.gsep-pg-status.is-error { background: #fef2f2; color: #991b1b; }
.gsep-pg-status a { color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.gsep-pg-spin {
    width: 18px; height: 18px; flex: none; border-radius: 50%;
    border: 2px solid #d1d5db; border-top-color: #1f2937; animation: gsepPgSpin .8s linear infinite;
}
.gsep-pg-pay .gsep-pg-spin { width: 16px; height: 16px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.gsep-pg-dots::after { content: ''; animation: gsepPgDots 1.4s steps(4, end) infinite; }

/* Result dialog */
.gsep-pg-overlay {
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(17, 24, 39, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: gsepPgFade .2s ease both;
}
.gsep-pg-overlay.is-closing { animation: gsepPgFadeOut .2s ease both; }
.gsep-pg-card {
    width: 100%; max-width: 380px; padding: 34px 26px 26px; background: #fff; border-radius: 18px;
    text-align: center; color: #111827; font-family: inherit;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35); animation: gsepPgPop .32s cubic-bezier(.2, .9, .3, 1.2) both;
}
.gsep-pg-card h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; color: #111827; }
.gsep-pg-card p { margin: 0; color: #6b7280; font-size: 15px; line-height: 1.5; }
.gsep-pg-card .gsep-pg-amount { margin-top: 10px; font-size: 26px; font-weight: 700; color: #111827; }
.gsep-pg-card .gsep-pg-btn {
    display: inline-block; margin-top: 22px; min-width: 160px; padding: 11px 22px; border: 0; border-radius: 8px;
    background: #1f2937; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.gsep-pg-card .gsep-pg-btn:hover { background: #111827; color: #fff; }
.gsep-pg-card .gsep-pg-note { margin-top: 14px; font-size: 13px; }

/* Dimmed page while the checkout pop-up window is open */
.gsep-pg-shield { background: rgba(0, 0, 0, .78); cursor: pointer; }
.gsep-pg-shield-box { max-width: 360px; text-align: center; color: #fff; font-family: inherit; animation: gsepPgPop .32s cubic-bezier(.2, .9, .3, 1.2) both; }
.gsep-pg-shield-lock { width: 40px; height: 40px; fill: #fff; opacity: .9; }
.gsep-pg-shield-box p { margin: 14px 0 18px; color: #fff; font-size: 16px; line-height: 1.5; }
.gsep-pg-shield-box .gsep-pg-shield-go { color: #fff; font-size: 16px; font-weight: 700; text-decoration: underline; }
.gsep-pg-shield-box .gsep-pg-shield-go:hover { color: #fff; opacity: .85; }

.gsep-pg-icon { width: 76px; height: 76px; display: block; margin: 0 auto; }
.gsep-pg-icon circle { fill: none; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: gsepPgDraw .6s ease-out forwards; }
.gsep-pg-icon path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: gsepPgDraw .35s .5s ease-out forwards; }
.gsep-pg-icon.ok circle, .gsep-pg-icon.ok path { stroke: #16a34a; }
.gsep-pg-icon.bad circle, .gsep-pg-icon.bad path { stroke: #dc2626; }
.gsep-pg-icon.warn circle, .gsep-pg-icon.warn path { stroke: #d97706; }
.gsep-pg-icon.ok { animation: gsepPgBounce .4s .85s ease both; }
.gsep-pg-loader {
    width: 64px; height: 64px; margin: 6px auto; border-radius: 50%;
    border: 4px solid #e5e7eb; border-top-color: #1f2937; animation: gsepPgSpin .8s linear infinite;
}

/* Confetti for success */
.gsep-pg-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 100001; }
.gsep-pg-confetti i {
    position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .9;
    animation: gsepPgFall linear forwards;
}

@keyframes gsepPgSpin { to { transform: rotate(360deg); } }
@keyframes gsepPgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gsepPgFadeOut { to { opacity: 0; } }
@keyframes gsepPgPop { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gsepPgDraw { to { stroke-dashoffset: 0; } }
@keyframes gsepPgBounce { 50% { transform: scale(1.08); } }
@keyframes gsepPgDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes gsepPgFall { to { transform: translateY(105vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
    .gsep-pg-overlay *, .gsep-pg-status * { animation-duration: .01ms !important; animation-delay: 0s !important; }
    .gsep-pg-confetti { display: none; }
}
