/* Paid Private Messages */

.paidpm-settings-card,
.paidpm-charge-card {
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17,24,39,.06);
}

.paidpm-settings-card {
    max-width: 720px;
    padding: 22px;
}

.paidpm-head,
.paidpm-charge-main,
.paidpm-charge-footer,
.paidpm-toggle-row,
.paidpm-footer {
    display: flex;
    align-items: center;
}

.paidpm-head,
.paidpm-charge-main {
    gap: 14px;
}

.paidpm-head h2,
.paidpm-charge-copy h3 {
    margin: 0;
    line-height: 1.35;
}

.paidpm-head p,
.paidpm-charge-copy p {
    margin: 5px 0 0;
    color: #667085;
}

.paidpm-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.paidpm-toggle-row {
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.paidpm-muted {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

.paidpm-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
}

.paidpm-switch input {
    position: absolute;
    opacity: 0;
}

.paidpm-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #d0d5dd;
    transition: .18s ease;
}

.paidpm-switch span:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16,24,40,.18);
    transition: .18s ease;
}

.paidpm-switch input:checked + span {
    background: #111827;
}

.paidpm-switch input:checked + span:after {
    transform: translateX(20px);
}

.paidpm-field {
    margin-top: 20px;
}

.paidpm-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.paidpm-input {
    display: flex;
    align-items: stretch;
    max-width: 340px;
}

.paidpm-input input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d0d5dd;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    font-size: 16px;
    outline: 0;
}

.paidpm-input input:focus {
    border-color: #667085;
}

.paidpm-input span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 0 9px 9px 0;
    background: #f9fafb;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.paidpm-preview {
    margin-top: 20px;
    padding: 16px;
    border-radius: 11px;
    background: #f8fafc;
}

.paidpm-preview span,
.paidpm-preview small {
    display: block;
    color: #667085;
}

.paidpm-preview strong {
    display: block;
    margin: 3px 0;
    font-size: 22px;
}

.paidpm-footer {
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    color: #667085;
}

.paidpm-primary,
.paidpm-send,
.paidpm-buy {
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 10px 15px !important;
    background: #111827 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.paidpm-buy {
    display: inline-block;
}

.paidpm-charge-card {
    margin: 14px 0;
    padding: 16px 18px;
}

.paidpm-charge-main {
    align-items: flex-start;
}

.paidpm-charge-copy {
    min-width: 0;
    flex: 1;
}

.paidpm-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.paidpm-price-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    font-weight: 800;
}

.paidpm-charge-footer {
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #eef0f3;
    color: #667085;
}

.paidpm-insufficient {
    border-color: #fed7aa;
    background: #fffdfa;
}

.paidpm-nav-link {
    font-weight: 700;
}

@media (max-width: 620px) {
    .paidpm-charge-main,
    .paidpm-charge-footer,
    .paidpm-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .paidpm-price-pill {
        align-self: flex-start;
    }

    .paidpm-primary,
    .paidpm-send,
    .paidpm-buy {
        width: 100%;
        text-align: center;
    }
}