/* Compact Stripe record modal - user billing + admin */

.srm-overlay {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.srm-overlay.is-open {
    display: flex;
}

.srm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.srm-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: min(86vh, 640px);
    display: flex;
    flex-direction: column;
    background: #1a1d24;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.srm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srm-header-main {
    min-width: 0;
}

.srm-kicker {
    margin: 0 0 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5cbd6;
}

.srm-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    word-break: break-word;
}

.srm-subtitle {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #d0d5dd;
}

.srm-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cfd4dc;
    cursor: pointer;
}

.srm-close:hover,
.srm-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.srm-close i {
    pointer-events: none;
}

.srm-body {
    overflow: auto;
    padding: 14px 18px 18px;
}

.srm-highlight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(247, 100, 31, 0.08);
    border: 1px solid rgba(247, 100, 31, 0.22);
}

.srm-highlight-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.srm-highlight-hint {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f7641f;
}

.srm-section + .srm-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.srm-section-title {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c5cbd6;
}

.srm-rows {
    display: grid;
    gap: 6px 12px;
}

.srm-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.srm-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c5cbd6;
    padding-top: 1px;
}

.srm-value {
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: #f8fafc;
    word-break: break-word;
}

.srm-value-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.srm-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #e8eaed;
}

.srm-copy {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: transparent;
    color: #a8b0bd;
    cursor: pointer;
}

.srm-copy:hover,
.srm-copy:focus-visible {
    border-color: rgba(247, 100, 31, 0.55);
    color: #f7641f;
    outline: none;
}

.srm-copy.is-copied {
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
}

.srm-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.srm-badge-ok {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.srm-badge-warn {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.srm-badge-bad {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.srm-badge-info {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.srm-badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5dc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.srm-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #8b92a0;
}

button.srm-open {
    cursor: pointer;
}

.payment-cancel-table .btn-view {
    border-color: rgba(255, 255, 255, 0.16);
    color: #cfd4dc;
}

.payment-cancel-table .btn-view:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.payment-cancel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.payment-cancel-more-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

button.payment-cancel-more-view {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: var(--pc-muted, #a8b0bd);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

button.payment-cancel-more-view:hover {
    color: var(--pc-text, #e8eaed);
}

button.payment-cancel-more-view i {
    display: none;
}

.profile-plan-view,
.fma-plan-view {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #cfd4dc;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-plan-view:hover,
.fma-plan-view:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.payment-cancel-table .btn-action {
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 480px) {
    .srm-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .srm-dialog {
        max-height: min(92vh, 720px);
    }
}
