/* =============================================================
   Couples fees (Nov 2026): signup step 1, dashboard editor,
   and the fee lines on the profile. Tokens are the site's own:
   signup (all.css), editor (--ttf-*), profile (--tp-*).
   ============================================================= */

/* ---------- Signup wizard, step 1 ---------- */

.ttf-cf-signup {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ttf-cf-signup .ttf-cf-signup-help {
    margin: 2px 0 0;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.5;
}
.ttf-cf-signup .ttf-cf-block {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 16px 18px;
    background: #fff;
}
.ttf-cf-signup .ttf-cf-block > label {
    margin-bottom: 10px;
}
.ttf-cf-signup .ttf-cf-block .form-check {
    margin-bottom: 12px;
}
/* The couples range, laid out like the individual one (all.css styles that by its id). */
.ttf-cf-signup .ttf-cf-range:not(.hide) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.ttf-cf-signup .ttf-cf-error,
.ttf-cf-fees .ttf-cf-error {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
.ttf-cf-signup .ttf-cf-error[hidden],
.ttf-cf-fees .ttf-cf-error[hidden] { display: none; }

@media (max-width: 600px) {
    .ttf-cf-signup .ttf-cf-block { padding: 14px 12px 16px; }
    .ttf-cf-signup .form-check { gap: 12px; }
}

/* ---------- Dashboard editor, Basic info ---------- */

.ttf-cf-fees .ttf-cf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 6px;
}
.ttf-cf-fees .ttf-cf-panel {
    margin: 0;
    min-width: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--ttf-line, #e6e6e6);
    border-radius: 12px;
    background: var(--ttf-bg, #f7f7f5);
    display: grid;
    gap: 12px;
    align-content: start;
}
.ttf-cf-fees .ttf-cf-panel-title {
    float: left;               /* keeps the legend inside the panel, not on its border */
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ttf-ink, #1a1a1a);
}
.ttf-cf-fees .ttf-cf-panel-title + * { clear: both; }
.ttf-cf-fees .ttf-check { background: #fff; }
.ttf-cf-fees .ttf-check:has(input:checked) { background: #fff8e1; }
.ttf-cf-fees .ttf-cf-panel .ttf-grid-2 { gap: 12px; }
.ttf-cf-fees .ttf-cf-error { margin-top: 4px; }

.ttf-edit-form .ttf-cf-fees input.ttf-cf-invalid,
.ttf-edit-form .ttf-cf-fees input.ttf-cf-invalid:focus {
    border-color: var(--ttf-error, #dc2626);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

@media (max-width: 720px) {
    .ttf-cf-fees .ttf-cf-grid { grid-template-columns: 1fr; }
    .ttf-cf-fees .ttf-cf-panel { padding: 12px 12px 14px; }
    /* Keeps Fixed price / Price range on one line on a 390px phone. */
    .ttf-cf-fees .ttf-cf-panel .ttf-check { padding: 8px 11px; gap: 6px; font-size: 13.5px; }
}
/* Side by side, the From/To boxes only fit once the panel is wide enough. */
@media (min-width: 721px) and (max-width: 1100px) {
    .ttf-cf-fees .ttf-cf-panel .ttf-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Profile: the fee lines ---------- */

/* Hero: one line per fee once there is a couples fee. */
.tp-profile .tp-hero-fee--labelled .tp-hero-fee-item { display: block; }
.tp-profile .tp-hero-fee--labelled .tp-hero-fee-item + .tp-hero-fee-item { margin-top: 2px; }

/* Main column "Fees" card: the two fees side by side when there is room. */
.tp-profile .tp-fee-lines {
    display: grid;
    gap: 14px;
}
@media (min-width: 640px) {
    .tp-profile .tp-fee-lines:has(.tp-fee-label) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tp-profile .tp-fee-label {
    display: block;
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tp-muted, #5b6573);
}

/* Sidebar "Fees" card. */
.tp-profile.tp-profile .tp-side-fee-label {
    margin: 0 0 2px !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tp-muted, #5b6573);
}
.tp-profile.tp-profile .tp-side-fee + .tp-side-fee-label { margin-top: 12px !important; }
