/* Accept Customer — Front-end Styles
   checkout.css v1.0.2 */

.accept-customer-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.accept-customer-btn {
    display: inline-block;
    padding: 0.75em 1.75em;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background-color: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.accept-customer-btn:hover,
.accept-customer-btn:focus {
    background-color: #135e96;
    outline: 2px solid #135e96;
    outline-offset: 2px;
}

.accept-customer-btn:active {
    background-color: #0a4b78;
}

/* ── Checkout iframe wrapper ──────────────────────────────────────────── */

.accept-customer-checkout-wrapper {
    width: 100%;
    padding: 0;
}

.accept-customer-checkout-loading {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
    color: #50575e;
}

.accept-customer-checkout-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #c3c4c7;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: accept-customer-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

.accept-customer-checkout-frame { display: none; }
.accept-customer-checkout-frame.is-visible { display: block; }

.accept-customer-checkout-frame iframe {
    width: 100%;
    min-height: 700px;
    border: none;
    border-radius: 6px;
    background: #fff;
}

.accept-customer-checkout-status {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1rem;
    color: #50575e;
    display: none;
}

.accept-customer-checkout-cancel {
    text-align: center;
    margin-top: 1.5rem;
}

.accept-customer-checkout-cancel a {
    color: #787c82;
    font-size: 0.875rem;
    text-decoration: none;
}

.accept-customer-checkout-cancel a:hover { text-decoration: underline; }

/* ── Plan Details debug card (admin-only) ─────────────────────────────── */

.accept-customer-plan-details {
    max-width: 560px;
    margin: 1.5em 0;
    border: 2px solid #c3c4c7;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #fff;
}

.accept-customer-plan-sandbox {
    border-color: #eab308;
}

.accept-customer-plan-production {
    border-color: #2271b1;
}

.accept-customer-plan-error {
    border-color: #d63638;
    background: #fcf0f1;
    padding: 1em;
}

.accept-customer-plan-error p {
    margin: 0;
    color: #d63638;
    font-weight: 600;
}

.accept-customer-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75em 1em;
    border-bottom: 1px solid #e0e0e0;
    background: #f6f7f7;
    border-radius: 4px 4px 0 0;
}

.accept-customer-plan-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.accept-customer-plan-badge {
    display: inline-block;
    padding: 0.15em 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
}

.accept-customer-plan-badge--sandbox {
    background: #eab308;
    color: #1c1917;
}

.accept-customer-plan-badge--production {
    background: #2271b1;
    color: #fff;
}

.accept-customer-plan-table {
    width: 100%;
    border-collapse: collapse;
}

.accept-customer-plan-table th,
.accept-customer-plan-table td {
    padding: 0.5em 1em;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.accept-customer-plan-table th {
    width: 40%;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
}

.accept-customer-plan-table th.accept-customer-plan-section {
    width: auto;
    background: #f0f6fc;
    color: #1d2327;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.accept-customer-plan-table td {
    color: #1d2327;
}

.accept-customer-plan-table tr:last-child th,
.accept-customer-plan-table tr:last-child td {
    border-bottom: none;
}

.accept-customer-plan-table code {
    padding: 0.15em 0.4em;
    font-size: 0.85em;
    background: #f0f0f1;
    border-radius: 3px;
}

.accept-customer-plan-ok {
    color: #166534;
    font-size: 0.85em;
    margin-left: 0.4em;
}

.accept-customer-plan-err {
    color: #b91c1c;
    font-size: 0.85em;
    margin-left: 0.4em;
    font-weight: 600;
}

.accept-customer-plan-meta-inline {
    color: #787c82;
    font-size: 0.85em;
    margin-left: 0.4em;
}

.accept-customer-plan-errors {
    margin: 0;
    padding-left: 1.1em;
    color: #b91c1c;
}

.accept-customer-plan-meta {
    padding: 0.5em 1em;
    border-top: 1px solid #e0e0e0;
    background: #f6f7f7;
    border-radius: 0 0 4px 4px;
    color: #787c82;
}
