/* friendpay-demo.css
   - iframe / modal styling, extracted from original inline CSS
*/

/* Variables */
:root {
    --blue: #033aa8;
    --muted: #6b7280;
    --bg: #f7fafc;
    --card: #ffffff;
    --success: #16a34a;
}

/* Modal overlay and container used on the main site */
#friendpay-iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

#friendpay-iframe-modal {
    width: 560px;
    max-width: 96%;
    height: 680px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}



.friendpay-btn {
    font-weight: 600;
}

/* --- Iframe / demo UI --- */
/* Keep exact visual style used inside the iframe; same as original inline style */
html,
body {
    height: 100%;
    margin: 0;
    background: transparent;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
}

.wrap {
    box-sizing: border-box;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.frame-card {
    width: 540px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(12, 13, 14, 0.12);
    overflow: hidden;
}

.header {
    background: var(--blue);
    color: #fff;
    padding: 18px 18px 14px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 18px;
}

.sub {
    font-size: 13px;
    opacity: .95;
    margin-top: 6px;
}

.content {
    padding: 18px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"] {
    width: 94%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    font-size: 15px;
}

.row {
    display: flex;
    gap: 8px;
}

.col {
    flex: 1;
}

.pay-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.center {
    text-align: center;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

.hidden {
    display: none;
}

.processing {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 16px 0;
}

.spinner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.invoice {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #eaecef;
}

.invoice h3 {
    margin: 0 0 6px 0;
}

.invoice .line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px dashed #f1f3f5;
}

.success-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.note {
    font-size: 13px;
    color: #374151;
    margin-top: 10px;
    text-align: center;
}

.link-btn {
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}