/* Pages of the clients (resources/views/clients): the extras of the login pages and their home with the bookings.
   The home of the advertiser (members/home) is the same page with the bookings it receives and its advertisement */

:root {
    --client-pink: #dd0451;
    --client-pink-dark: #c40347;
    --client-pink-soft: #fff2f7;
    --client-pink-border: #ffd0e1;
    --client-navy: #1f3a6b;
    --client-text: #243b6b;
    --client-muted: #5f7296;
    --client-placeholder: #7f8ca9;
    --client-line: #edf1f8;
    --client-green: #166534;
    --client-green-soft: #ecfdf3;
    --client-green-border: #b7ebc9;
    --client-amber: #92400e;
    --client-amber-soft: #fff7e0;
    --client-amber-border: #fde3a3;
    --client-red: #b91c1c;
    --client-red-soft: #fef2f2;
    --client-shadow: 0 18px 42px rgba(30, 50, 88, 0.08);
}

/* ---------- login, register, password ---------- */

.client-auth-lead {
    margin: 0 0 1.1rem;
    color: var(--client-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

/* A screen of one message: the email sent, the email confirmed */
.client-status-card { text-align: center; }

.client-status-icon {
    width: 76px;
    height: 76px;
    margin: 0.4rem auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
}

.client-status-icon.is-info { background: var(--client-pink-soft); color: var(--client-pink); }
.client-status-icon.is-success { background: var(--client-green-soft); color: #16a34a; }
.client-status-icon.is-error { background: var(--client-red-soft); color: var(--client-red); }

.client-status-title {
    margin: 0 0 0.6rem;
    color: var(--client-navy);
    font-size: 1.5rem;
    font-weight: 800;
}

.client-status-text {
    margin: 0 0 1.2rem;
    color: var(--client-muted);
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.client-status-text strong { color: var(--client-navy); }

.client-steps {
    margin: 0 0 1.1rem;
    padding: 0.9rem 1rem;
    list-style: none;
    border-radius: 8px;
    background: #f7f9ff;
    text-align: left;
    display: grid;
    gap: 0.55rem;
}

.client-steps li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--client-navy);
    font-size: 0.93rem;
    font-weight: 700;
}

.client-steps i { color: var(--client-pink); font-size: 1.1rem; }

.client-status-hint {
    margin: 0 0 1.3rem;
    color: var(--client-placeholder);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- the advertiser answers a booking ---------- */

.login-panel.client-respond-panel { width: min(100%, 560px); }

.client-details {
    margin: 0 0 1.4rem;
    border: 1px solid var(--client-line);
    border-radius: 8px;
}

.client-details > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 0.7rem 1rem;
}

.client-details > div + div { border-top: 1px solid var(--client-line); }

.client-details dt {
    color: var(--client-placeholder);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 2px;
}

.client-details dd {
    margin: 0;
    color: var(--client-navy);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.client-respond-question {
    margin: 0 0 0.3rem;
    color: var(--client-navy);
    font-weight: 800;
    text-align: center;
}

.client-respond-accept,
.client-respond-reject {
    height: 54px;
    border-radius: 8px;
    font-weight: 800;
}

.client-respond-accept,
.client-respond-accept:hover,
.client-respond-accept:focus { background: #16a34a; border-color: #16a34a; color: #fff; }

.client-respond-reject,
.client-respond-reject:hover,
.client-respond-reject:focus { background: #fff; border: 2px solid #fecaca; color: var(--client-red); }

.client-respond-state {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #f7f9ff;
    color: var(--client-muted);
    font-weight: 700;
    text-align: center;
}

.client-respond-state.is-accepted { background: var(--client-green-soft); color: var(--client-green); }
.client-respond-state.is-rejected { background: var(--client-red-soft); color: var(--client-red); }

@media (max-width: 576px) {
    .client-details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- home of the client ---------- */

.client-home-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(40% 30% at 0% 0%, rgba(221, 4, 81, 0.08) 0%, rgba(221, 4, 81, 0) 100%),
        linear-gradient(180deg, #f8faff 0%, #fff7fa 100%);
    color: var(--client-text);
}

.client-home-body footer { margin-top: auto; }

.client-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.client-card {
    min-width: 0;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    box-shadow: var(--client-shadow);
}

.client-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 18px;
}

.client-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ffe6f0;
    color: var(--client-pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-hero h1 {
    margin: 0;
    color: var(--client-navy);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.client-hero p {
    margin: 6px 0 0;
    color: var(--client-muted);
    font-size: 16px;
    font-weight: 600;
}

.client-hero-text { min-width: 0; max-width: 100%; }
.client-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* The reputation of the client, under the greeting (clients.home): a small card with its average, that opens its reviews when it has them */
.client-reputation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 460px;
    max-width: 100%;
    margin: 14px 0 0;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--client-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 50, 88, 0.07);
    font: inherit;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.client-reputation-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 68px;
    min-height: 54px;
    padding: 6px 7px;
    border-radius: 8px;
    background: var(--client-amber-soft);
}

.client-reputation-score strong { color: var(--client-navy); font-size: 22px; font-weight: 900; line-height: 1; }
.client-reputation-score > i { color: #ff9d00; font-size: 20px; }
.client-reputation-score .client-stars { gap: 1px; font-size: 10px; }
.client-reputation-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.client-reputation-title { color: var(--client-navy); font-size: 15.5px; font-weight: 800; }
.client-reputation-count { color: var(--client-text); font-size: 14px; font-weight: 700; }
.client-reputation-help { margin-top: 2px; color: var(--client-muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.client-reputation-see { display: inline-flex; align-items: center; gap: 6px; color: var(--client-pink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.client-reputation-see i { transition: transform 0.15s ease; }
button.client-reputation { cursor: pointer; }
button.client-reputation:hover { border-color: var(--client-pink-border); box-shadow: 0 12px 26px rgba(221, 4, 81, 0.1); transform: translateY(-1px); }
button.client-reputation:hover .client-reputation-see i { transform: translateX(3px); }
button.client-reputation:focus-visible { outline: 2px solid var(--client-pink); outline-offset: 2px; }

.client-btn,
.client-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: 2px solid var(--client-line);
    border-radius: 8px;
    background: #fff;
    color: var(--client-navy);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.client-btn:hover { border-color: var(--client-pink-border); color: var(--client-pink); transform: translateY(-1px); }

.client-btn.is-primary {
    border-color: var(--client-pink);
    background: var(--client-pink);
    color: #fff;
    box-shadow: 0 10px 22px rgba(221, 4, 81, 0.22);
}

.client-btn.is-primary:hover { background: var(--client-pink-dark); border-color: var(--client-pink-dark); color: #fff; }

.client-btn.is-small { height: 38px; padding: 0 12px; font-size: 13.5px; }
.client-btn.is-whatsapp { color: #128c4b; }
.client-btn.is-whatsapp:hover { border-color: #b7ebc9; color: #128c4b; }
.client-btn.is-danger { color: var(--client-red); }
.client-btn.is-danger:hover { border-color: #fecaca; color: var(--client-red); }
.client-btn.is-success { border-color: #16a34a; background: #16a34a; color: #fff; }
.client-btn.is-success:hover { border-color: #15803d; background: #15803d; color: #fff; }

/* The tabs of the bookings of the advertiser and of the client (members.home, clients.home), over their list: a segmented bar, the one chosen raised in
   white. Each one with its icon and its number, coloured while there is something to do */
.booking-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 16px;
    padding: 5px;
    border: 1px solid var(--client-line);
    border-radius: 18px;
    background: #f1f4f9;
}

.booking-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    padding: 8px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--client-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* In the page of the advertiser (members.home), stuck at the top while its bookings go by, at the height of the calendar at
   its side; once stuck (is-stuck, from its script) with a border and a shadow over the cards. In the phone, under the switch
   of the bookings and the calendar (below) */
.booking-views + .client-grid .booking-tabs {
    position: sticky;
    top: calc(var(--nav-offset, 0px) + 16px);
    z-index: 49;
    transition: top 0.25s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-views + .client-grid .booking-tabs.is-stuck { border-color: #cfd9e8; box-shadow: 0 8px 20px rgba(31, 58, 107, 0.12); }

.booking-tab > i { font-size: 18px; transition: color 0.15s ease; }
.booking-tab:hover { background: rgba(255, 255, 255, 0.75); color: var(--client-navy); }
.booking-tab:focus-visible { outline: 2px solid var(--client-pink); outline-offset: 2px; }
.booking-tab[aria-selected="true"] { background: #fff; color: var(--client-navy); box-shadow: 0 8px 20px rgba(31, 58, 107, 0.1), 0 1px 3px rgba(31, 58, 107, 0.08); }
.booking-tab[aria-selected="true"] > i { color: var(--client-pink); }

.booking-tab-count {
    min-width: 28px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e3e8f2;
    color: var(--client-navy);
    font-size: 12.5px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
}

.booking-tab-count.is-pending { background: var(--client-amber-soft); color: var(--client-amber); box-shadow: inset 0 0 0 1px var(--client-amber-border); }
.booking-tab-count.is-accepted { background: var(--client-green-soft); color: var(--client-green); box-shadow: inset 0 0 0 1px var(--client-green-border); }

/* In the phone, the icon and its number over its name, the three the same height */
@media (max-width: 560px) {
    .booking-tabs { gap: 2px; padding: 4px; border-radius: 16px; }
    .booking-tab { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 5px 6px; padding: 9px 4px; font-size: 13px; border-radius: 12px; }
    .booking-tab > i { font-size: 16px; }
    .booking-tab-label { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}

/* The switch of the bookings and the calendar of the advertiser (members.home), only in one column (below): a pill with
   the one chosen in pink, so it does not look like the tabs of the bookings under it */
.booking-views {
    display: none;
    gap: 4px;
    margin: 0 0 16px;
    padding: 4px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 58, 107, 0.06);
}

.booking-view {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--client-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.booking-view:hover { color: var(--client-navy); }
.booking-view:focus-visible { outline: 2px solid var(--client-pink); outline-offset: 2px; }
.booking-view[aria-pressed="true"] { background: var(--client-pink); color: #fff; box-shadow: 0 6px 14px rgba(221, 4, 81, 0.24); }

.client-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: #fff;
    color: var(--client-navy);
    box-shadow: var(--client-shadow);
}

.client-alert > i { font-size: 22px; line-height: 1.1; color: var(--client-muted); }
.client-alert > div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; font-weight: 600; }
.client-alert strong { font-size: 15.5px; font-weight: 800; }
.client-alert.is-success { border-color: var(--client-green-border); background: var(--client-green-soft); }
.client-alert.is-success > i { color: #16a34a; }
.client-alert.is-error { border-color: #fecaca; background: var(--client-red-soft); color: var(--client-red); }
.client-alert.is-error > i { color: var(--client-red); }

.client-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
}

.client-main,
.client-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* Under the navbar while it is there (--nav-offset, all.css), going down and up with it */
.client-side { position: sticky; top: calc(var(--nav-offset, 0px) + 16px); transition: top 0.25s ease; }

.client-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--client-navy);
    font-size: 19px;
    font-weight: 800;
}

.client-section-title > i {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--client-pink-soft);
    color: var(--client-pink);
    font-size: 16px;
}

.client-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: #f3f6fd;
    color: var(--client-muted);
    font-size: 13px;
    font-weight: 800;
}

/* ---------- a booking ---------- */

.client-booking-list { display: flex; flex-direction: column; gap: 14px; }

.client-booking {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    scroll-margin: 20px;
}

.client-booking-inner { display: flex; gap: 16px; padding: 16px; }

.client-booking-photo {
    flex: none;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef7;
}

.client-booking-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.client-booking-body { flex: 1; min-width: 0; }

.client-booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.client-booking-name { min-width: 0; }

.client-booking-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--client-placeholder);
    font-size: 12.5px;
    font-weight: 800;
}

.client-booking-category i { color: var(--client-pink); }

.client-booking h3 {
    margin: 2px 0 0;
    color: var(--client-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.client-booking h3 a { color: inherit; text-decoration: none; }
.client-booking h3 a:hover { color: var(--client-pink); }

.client-status {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #f7f9ff;
    color: var(--client-muted);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.client-status.is-pending { border-color: var(--client-amber-border); background: var(--client-amber-soft); color: var(--client-amber); }
.client-status.is-accepted,
.client-status.is-completed { border-color: var(--client-green-border); background: var(--client-green-soft); color: var(--client-green); }
.client-status.is-rejected { border-color: #fecaca; background: var(--client-red-soft); color: var(--client-red); }

.client-booking-facts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--client-muted);
    font-size: 14.5px;
    font-weight: 600;
}

.client-booking-facts li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.client-booking-facts i { flex: none; color: var(--client-pink); }
.client-booking-facts span { min-width: 0; overflow-wrap: anywhere; }
.client-booking-facts strong { color: var(--client-navy); font-weight: 800; }

.client-booking-note {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--client-amber-soft);
    color: var(--client-amber);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.client-booking-note.is-success { background: var(--client-green-soft); color: var(--client-green); }

.client-booking-message { margin-top: 10px; color: var(--client-muted); font-size: 14px; }
.client-booking-message summary { width: fit-content; color: var(--client-navy); font-weight: 800; cursor: pointer; }
.client-booking-message p { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: #f7f9ff; overflow-wrap: anywhere; }

.client-booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.client-booking-actions form { margin: 0; }

.client-booking-meta { margin: 10px 0 0; color: var(--client-placeholder); font-size: 12.5px; font-weight: 600; }

/* ---------- reviews: the stars, the review of a finished booking and the dialog to write it ---------- */

.client-stars { display: inline-flex; gap: 2px; color: #ff9d00; font-size: 13px; }

/* The reputation of the client, under its name in the bookings of the advertiser, discreet (the name and the status of
   the booking go first): with reviews, a button that opens them in their dialog; without them, "Aún sin valorar" */
.client-rating { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--client-placeholder); font-size: 12.5px; font-weight: 600; }
.client-rating i { color: #ffb020; font-size: 11.5px; }
.client-rating strong { color: var(--client-muted); font-weight: 800; }
.client-rating.is-new i { color: var(--client-placeholder); }

button.client-rating { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
button.client-rating:focus-visible { outline: 2px solid var(--client-pink); outline-offset: 2px; border-radius: 4px; }
.client-rating-link { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; color: var(--client-pink); font-weight: 700; }
.client-rating .client-rating-link i { color: inherit; font-size: 10px; transition: transform 0.15s ease; }
button.client-rating:hover .client-rating-link { text-decoration: underline; text-underline-offset: 2px; }
button.client-rating:hover .client-rating-link i { transform: translateX(2px); }

.client-review {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--client-line);
}

.client-review-mine { display: inline-flex; align-items: center; gap: 7px; color: var(--client-navy); font-size: 14px; font-weight: 800; }
/* Until when it can be written or changed, and if it is hidden until the other one writes its own. The other one has
   already written it: to write its own, in pink */
.client-review-status { display: flex; align-items: flex-start; gap: 6px; flex-basis: 100%; margin: 0; color: var(--client-muted); font-size: 13px; font-weight: 600; line-height: 1.45; }
.client-review-status i { margin-top: 1px; color: var(--client-placeholder); }
.client-review-status.is-waiting { padding: 8px 10px; border-radius: 8px; background: var(--client-pink-soft); color: var(--client-pink-dark); font-weight: 700; }
.client-review-status.is-waiting i { color: var(--client-pink); }

.client-dialog {
    width: min(480px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--client-text);
    box-shadow: 0 30px 70px rgba(14, 24, 43, 0.3);
}

.client-dialog::backdrop { background: rgba(14, 24, 43, 0.45); }
body:has(.client-dialog[open]) { overflow: hidden; }

.client-dialog form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.client-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.client-dialog-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--client-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.client-dialog-head h2 i { color: #ff9d00; }

.client-dialog-close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fd;
    color: var(--client-muted);
    cursor: pointer;
}

.client-dialog-close:hover { color: var(--client-pink); }

.client-rating-input { margin: 0; padding: 0; border: 0; }
.client-rating-input legend { margin-bottom: 4px; color: var(--client-navy); font-size: 14px; font-weight: 800; }

/* The stars come from 5 to 1 and are shown in reverse: the checked one, the one under the mouse and the ones before it
   (after it in the html) light up */
.client-rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.client-rating-stars input { position: absolute; opacity: 0; pointer-events: none; }
.client-rating-stars label { color: #d7deeb; font-size: 32px; line-height: 1; cursor: pointer; transition: color 0.12s ease, transform 0.12s ease; }
.client-rating-stars input:checked ~ label,
.client-rating-stars:not(:has(input:disabled)) label:hover,
.client-rating-stars:not(:has(input:disabled)) label:hover ~ label { color: #ff9d00; }
.client-rating-stars:not(:has(input:disabled)) label:hover { transform: scale(1.12); }
.client-rating-stars input:focus-visible + label { outline: 2px solid var(--client-pink); outline-offset: 2px; border-radius: 4px; }
.client-rating-stars input:disabled + label { cursor: default; }

.client-dialog-field { display: flex; flex-direction: column; gap: 6px; }
.client-dialog-field label { color: var(--client-navy); font-size: 14px; font-weight: 800; }
.client-dialog-field label small { color: var(--client-placeholder); font-weight: 700; }

.client-dialog textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 2px solid var(--client-line);
    border-radius: 8px;
    color: var(--client-text);
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-dialog textarea::placeholder { color: var(--client-placeholder); }
.client-dialog textarea:focus { outline: none; border-color: #ffc2d8; box-shadow: 0 0 0 4px rgba(221, 4, 81, 0.08); }
.client-dialog textarea[readonly] { background: #f7f9ff; }

.client-dialog-counter { align-self: flex-end; color: var(--client-placeholder); font-size: 12.5px; font-weight: 700; }
.client-dialog-note { margin: 0; color: var(--client-muted); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.client-dialog-note.is-locked { padding: 10px 12px; border-radius: 8px; background: var(--client-amber-soft); color: var(--client-amber); }
/* The lock, only when it can no longer be changed */
.client-dialog-note:not(.is-locked) > .bi-lock { display: none; }
.client-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* The reviews of the clients of the advertiser and the ones a client has received (members.home): its head fixed and the
   rest scrolls, the summary (its average and how many of each rating) over the reviews, as the page of the advertisement
   has them (review-items) */
.reviews-dialog { width: min(620px, calc(100vw - 32px)); max-height: min(780px, calc(100dvh - 32px)); border-radius: 16px; }
.reviews-dialog[open] { display: flex; flex-direction: column; }
.reviews-dialog-head { align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--client-line); }
.reviews-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 22px; }

.reviews-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid #ffe3a8;
    border-radius: 14px;
    background: #fffbf1;
}

.reviews-score { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 104px; }
.reviews-score strong { color: var(--client-navy); font-size: 42px; font-weight: 900; line-height: 1; }
.reviews-score small { color: var(--client-muted); font-size: 13px; font-weight: 700; }

.reviews-bars { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.reviews-bars li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 10px; color: var(--client-muted); font-size: 13px; font-weight: 800; }
.reviews-bar-label { display: inline-flex; align-items: center; gap: 4px; }
.reviews-bar-label i { color: #ff9d00; font-size: 11px; }
.reviews-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #f3e7c9; }
.reviews-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb020, #ff9d00); }
.reviews-bar-count { text-align: right; color: var(--client-navy); }

.reviews-dialog .profile-stars { display: inline-flex; gap: 2px; color: #ff9d00; font-size: 14px; }
.reviews-dialog .profile-review-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.reviews-dialog .profile-review { padding: 14px 0; border-top: 1px solid var(--client-line); }
.reviews-dialog .profile-review:first-child { padding-top: 0; border-top: 0; }
.reviews-dialog .profile-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.reviews-dialog .profile-review-head strong { color: var(--client-navy); font-size: 15px; font-weight: 800; }
.reviews-dialog .profile-review-head time { margin-left: auto; color: var(--client-placeholder); font-size: 13px; font-weight: 700; }
.reviews-dialog .profile-review-late,
.reviews-dialog .profile-review-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--client-amber-soft); color: var(--client-amber); font-size: 12px; font-weight: 800; }
/* The one of the advertiser, in the ones a client has received */
.reviews-dialog .profile-review-tag.is-mine { background: var(--client-pink-soft); color: var(--client-pink); }
.reviews-dialog .profile-review p { margin: 6px 0 0; color: var(--client-text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }

/* In the phone, a sheet from the bottom, all the width: the average beside its stars, over the bars */
@media (max-width: 560px) {
    .reviews-dialog { width: 100vw; max-width: 100vw; max-height: 88dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
    .reviews-dialog-head { padding: 16px 18px; }
    .reviews-dialog-body { padding: 16px 18px 22px; }
    .reviews-summary { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
    .reviews-score { flex-direction: row; justify-content: center; gap: 10px; }
    .reviews-score strong { font-size: 34px; }
}
.client-dialog-actions [hidden] { display: none; }

.client-booking-ribbon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--client-pink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

/* The history: less weight */
.client-booking-list.is-history .client-booking-photo { width: 64px; height: 64px; filter: saturate(0.6); }
.client-booking-list.is-history h3 { font-size: 17px; }

/* The client, in the bookings of the advertiser: its initials */
.client-booking-photo.client-booking-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--client-pink-soft);
    color: var(--client-pink);
    font-size: 22px;
    font-weight: 800;
}

.client-booking-list.is-history .client-booking-avatar { width: 52px; height: 52px; font-size: 18px; }
.client-booking-facts a { color: var(--client-navy); font-weight: 700; text-decoration: none; }
.client-booking-facts a:hover { color: var(--client-pink); }

/* The tabs of the advertiser: without bookings in one, a line; the history, 20 more with each "Ver más" */
.client-tab-empty { margin: 0; color: var(--client-muted); font-size: 14px; font-weight: 600; }
.client-tab-empty.is-error { margin-top: 12px; color: var(--client-red); }
.client-history-more { display: flex; justify-content: center; margin-top: 16px; }
.client-history-more:has(> [hidden]) { display: none; }

.client-side-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--client-navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.client-side-link i { color: var(--client-pink); }
.client-side-link:hover { color: var(--client-pink); }

/* The one just sent and the one chosen in the calendar */
.client-booking.is-new { border-color: #86efac; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12); }
/* The booking the calendar (or the email) takes to: marked 3 seconds, to find it in the list, and then it fades out */
.client-booking.is-flash { animation: client-flash 4s ease-out; }

@keyframes client-flash {
    0%, 75% { box-shadow: 0 0 0 4px rgba(221, 4, 81, 0.35); }
    100% { box-shadow: 0 0 0 4px rgba(221, 4, 81, 0); }
}

/* ---------- calendar and how it works ---------- */

.cal-day.is-booked > span { background: #dcfce7; color: var(--client-green); }
.cal-day.is-pending > span { background: #fef3c7; color: var(--client-amber); }
.cal-day.is-booked,
.cal-day.is-pending { cursor: pointer; }

/* How the calendar of the advertiser is used, under its title (members.home) */
.cal-hint { display: flex; flex-direction: column; gap: 4px; margin: -6px 0 14px; color: var(--client-muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
.cal-hint span { display: flex; align-items: baseline; gap: 7px; }
.cal-hint i { flex: none; color: var(--client-pink); }

.cal-swatch.is-booked { background: #dcfce7; box-shadow: inset 0 0 0 1px #86efac; }
.cal-swatch.is-pending { background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; }

.client-how ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }

.client-how li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--client-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.client-how li span {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--client-pink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

/* ---------- without bookings ---------- */

.client-empty { padding: 40px 24px; text-align: center; }

.client-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--client-pink-soft);
    color: var(--client-pink);
    font-size: 36px;
}

.client-empty h2 { margin: 0 0 8px; color: var(--client-navy); font-size: 22px; font-weight: 800; }
.client-empty p { max-width: 460px; margin: 0 auto 20px; color: var(--client-muted); font-size: 15.5px; line-height: 1.6; }

.client-empty.is-compact { padding: 28px 20px; }
.client-empty.is-compact .client-empty-icon { width: 60px; height: 60px; font-size: 26px; }
.client-empty.is-compact h2 { font-size: 19px; }

.client-empty-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }

.client-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #f7f9ff;
    color: var(--client-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.client-category-link i { color: var(--client-pink); }
.client-category-link:hover { background: var(--client-pink-soft); border-color: var(--client-pink-border); color: var(--client-pink); }

/* ---------- the advertisement of the advertiser, in its home ---------- */

.my-ad { margin-bottom: 18px; }
.my-ad-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--client-line); }
.my-ad-titlebar > .client-section-title { flex: 1 1 220px; margin: 0; }

.my-ad-inner { display: flex; align-items: flex-start; gap: 22px; }

.my-ad-photo {
    flex: none;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: #e9eef7;
    box-shadow: 0 8px 22px rgba(31, 58, 107, 0.1);
}

.my-ad-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.my-ad-photo:hover img { transform: scale(1.03); }

.my-ad-body { flex: 1; min-width: 0; }

.my-ad-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 3fr);
    grid-template-areas: "name price tags";
    align-items: center;
    gap: 14px 18px;
}

.my-ad-summary.without-price {
    grid-template-areas: "name . tags";
}

.my-ad-name { grid-area: name; min-width: 0; }

.my-ad h3 {
    margin: 0;
    color: var(--client-navy);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.my-ad-place { margin: 4px 0 0; color: var(--client-muted); font-size: 14.5px; font-weight: 600; }
.my-ad-place i { color: var(--client-pink); }

.my-ad-price { grid-area: price; justify-self: center; display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 10px 14px; border: 1px solid var(--client-pink-border); border-radius: 8px; background: var(--client-pink-soft); text-align: right; line-height: 1.1; white-space: nowrap; }
.my-ad-price span { color: var(--client-placeholder); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.my-ad-price strong { color: var(--client-navy); font-size: 26px; font-weight: 900; white-space: nowrap; }

.my-ad-status {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--client-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.my-ad-status .client-status.is-cancelled { border-color: #fecaca; background: var(--client-red-soft); color: var(--client-red); }
.my-ad-status > span:not(.client-status) { line-height: 1.45; }

.my-ad-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.my-ad-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #f7f9ff;
    color: var(--client-navy);
    font-size: 13.5px;
    font-weight: 700;
}

.my-ad-tag i { color: var(--client-pink); }
/* Reviewed by the team of GuauHaus */
.my-ad-tag.is-reviewed { border-color: var(--client-green-border); background: var(--client-green-soft); color: var(--client-green); }
.my-ad-tag.is-reviewed i { color: inherit; }

.my-ad-rating { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 6px 10px; border: 1px solid #ffe3a8; border-radius: 999px; background: #fffbf1; color: var(--client-muted); font-size: 13.5px; font-weight: 700; }
.my-ad-rating i { color: #ff9d00; }
.my-ad-rating strong { color: var(--client-navy); }
/* With reviews, the rating is the button that opens them (members.home): its link on the right */
button.my-ad-rating { font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
button.my-ad-rating:hover { border-color: #ffc94d; background: #fff4d6; box-shadow: 0 6px 16px rgba(255, 157, 0, 0.16); }
button.my-ad-rating:focus-visible { outline: 2px solid var(--client-pink); outline-offset: 2px; }
.my-ad-rating-link { display: inline-flex; align-items: center; gap: 3px; margin-left: 2px; padding-left: 9px; border-left: 1px solid #ffe3a8; color: var(--client-pink); font-weight: 800; }
.my-ad-rating .my-ad-rating-link i { color: inherit; font-size: 11px; transition: transform 0.15s ease; }
button.my-ad-rating:hover .my-ad-rating-link i { transform: translateX(2px); }

/* Its numbers by its own width (beside the photo it is narrow): 1, 2 or 4 in a row, never 3 and 1 */
.my-ad-activity {
    container-type: inline-size;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.my-ad .my-ad-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 12px;
    color: var(--client-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.my-ad-subtitle i {
    color: var(--client-pink);
    font-size: 16px;
}

.my-ad-period { margin-left: auto; color: var(--client-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }

.my-ad-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.my-ad-numbers li {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "icon value" "icon label" "icon detail";
    align-items: center;
    column-gap: 10px;
    row-gap: 1px;
    min-width: 0;
    min-height: 82px;
    padding: 11px 12px 11px 15px;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 58, 107, 0.045);
    text-align: left;
}

.my-ad-numbers li::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--stat-accent, var(--client-pink));
    content: "";
}

@container (max-width: 360px) { .my-ad-numbers { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 760px) { .my-ad-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.my-ad-numbers li:nth-child(1) { --stat-accent: #dd0451; --stat-soft: #fff2f7; }
.my-ad-numbers li:nth-child(2) { --stat-accent: #4774d1; --stat-soft: #eff5ff; }
.my-ad-numbers li:nth-child(3) { --stat-accent: #12936a; --stat-soft: #eafaf3; }
.my-ad-numbers li:nth-child(4) { --stat-accent: #d97a00; --stat-soft: #fff5e6; }

.my-ad-numbers i {
    width: 34px;
    height: 34px;
    grid-area: icon;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--stat-soft, var(--client-pink-soft));
    color: var(--stat-accent, var(--client-pink));
    font-size: 16px;
}

.my-ad-numbers strong { grid-area: value; align-self: end; color: var(--client-navy); font-size: 22px; font-weight: 900; line-height: 1.05; }
.my-ad-numbers span { grid-area: label; align-self: start; color: var(--client-muted); font-size: 12px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.my-ad-numbers small { grid-area: detail; align-self: start; margin-top: 3px; color: var(--client-muted); font-size: 11.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

.my-ad-weekdays { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; padding: 12px; border: 1px solid var(--client-line); border-radius: 8px; background: #fbfcff; }
.my-ad-weekdays-label { flex: 0 0 100%; margin-bottom: 2px; color: var(--client-navy); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.my-ad-weekdays-label i { margin-right: 5px; color: var(--client-pink); }

.my-ad-weekday {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #f7f9ff;
    color: #a7b1c6;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: line-through;
}

.my-ad-weekday.is-on { border-color: var(--client-green-border); background: var(--client-green-soft); color: var(--client-green); text-decoration: none; }
.my-ad-weekday i { font-size: 11px; }
.my-ad .client-booking-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--client-line); }

/* ---------- tablet and phone: one column, the bookings or the calendar (members.home, its switch) ---------- */

@media (max-width: 992px) {
    .client-grid { grid-template-columns: minmax(0, 1fr); }
    .client-side { position: static; }
    /* Stuck at the top while the bookings go by, so the calendar is always one tap away; under the menu of the navbar */
    .booking-views { display: flex; position: sticky; top: calc(var(--nav-offset, 0px) + 10px); z-index: 50; border-color: #cfd9e8; box-shadow: 0 8px 24px rgba(31, 58, 107, 0.16); transition: top 0.25s ease; }
    /* And under it the tabs of the bookings (only in the view of the bookings, the calendar has none): 10px + the switch
       (52px: its 42px, its padding and its border) + 6px. Both with a darker border, to stand out over the cards */
    .booking-views + .client-grid .booking-tabs { top: calc(var(--nav-offset, 0px) + 68px); border-color: #cfd9e8; box-shadow: 0 8px 20px rgba(31, 58, 107, 0.12); }
    /* Once the tabs are stuck, a band of the colour of the page behind the switch and them, from the navbar down, so the
       cards go under one block and nothing peeps between them (::before). The tabs keep their look on top of it (::after) */
    .booking-views + .client-grid .booking-tabs.is-stuck { background: transparent; border-color: transparent; box-shadow: none; }
    .booking-views + .client-grid .booking-tabs.is-stuck::after { content: ""; position: absolute; inset: -1px; z-index: -1; border: 1px solid #cfd9e8; border-radius: inherit; background: #f1f4f9; box-shadow: 0 8px 20px rgba(31, 58, 107, 0.12); }
    .booking-views + .client-grid .booking-tabs.is-stuck::before { content: ""; position: absolute; z-index: -1; left: -10px; right: -10px; top: -69px; bottom: -12px; background: rgba(250, 249, 253, 0.97); backdrop-filter: blur(8px); box-shadow: 0 10px 14px -12px rgba(31, 58, 107, 0.28); }
    .booking-views + .client-grid:not(.is-calendar-view) > .client-side,
    .booking-views + .client-grid.is-calendar-view > .client-main { display: none; }
    .client-how { display: none; }
}

@media (max-width: 768px) {
    .my-ad-summary,
    .my-ad-summary.without-price {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name price" "tags tags";
        align-items: start;
        gap: 10px;
    }

    .my-ad-summary.without-price { grid-template-areas: "name ." "tags tags"; }
    .my-ad-price { justify-self: end; }
}

@media (max-width: 576px) {
    .client-home { padding: 18px 10px 40px; }
    .client-card { padding: 18px 14px; }
    .client-hero h1 { font-size: 26px; }
    .client-hero-actions { width: 100%; }
    .client-hero-actions .client-btn { flex: 1; }
    .client-reputation { width: 100%; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding-right: 14px; }
    .client-reputation-score { grid-row: span 2; }
    .client-reputation-see { grid-column: 2; }

    .client-booking-inner { padding: 14px; gap: 12px; }
    .client-booking-photo { width: 64px; height: 64px; }
    .client-booking-head { flex-direction: column; }
    .client-booking-ribbon { padding: 9px 14px; }

    /* The bookings: its head from the left edge, like the rest, and the photo in the empty corner on its right; the rest
       below, all the width, without the empty column under the photo (the parts of the body become cells of the grid) */
    .client-booking-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
    .client-booking-body { display: contents; }
    .client-booking-head { grid-column: 1; grid-row: 1; }
    .client-booking-photo { grid-column: 2; grid-row: 1; align-self: start; }
    .client-booking-body > :not(.client-booking-head) { grid-column: 1 / -1; }

    /* The advertisement, small so the bookings come soon: the photo beside the name and the rest below, all the width
       (the parts of the body become cells of the grid) */
    .my-ad-inner { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px 14px; }
    .my-ad-photo { width: 72px; height: 72px; }
    .my-ad-titlebar { align-items: center; gap: 8px; }
    .my-ad-titlebar > .client-section-title { flex-basis: 160px; font-size: 17px; }
    .my-ad-body { display: contents; }
    .my-ad-body > :not(.my-ad-summary) { grid-column: 1 / -1; }
    .my-ad-summary,
    .my-ad-summary.without-price { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .my-ad-summary.without-price { grid-template-areas: "name ." "tags tags"; }
    .my-ad-tags { padding-top: 2px; }
    .my-ad h3 { font-size: 20px; }
    .my-ad-place { font-size: 13.5px; }
    .my-ad-price { justify-self: start; gap: 4px; padding: 8px 9px; }
    .my-ad-price span { font-size: 10px; }
    .my-ad-price strong { font-size: 21px; }
    .my-ad-status .client-status { max-width: 100%; padding: 5px 7px; font-size: 11px; white-space: normal; text-align: center; }
    .my-ad-activity { margin-top: 14px; padding: 11px; }
    .my-ad .my-ad-subtitle { margin-bottom: 10px; }
    .my-ad-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .my-ad-numbers li { grid-template-columns: 30px minmax(0, 1fr); min-height: 72px; column-gap: 7px; padding: 9px 8px 9px 11px; }
    .my-ad-numbers i { width: 28px; height: 28px; font-size: 13px; }
    .my-ad-numbers strong { font-size: 18px; }
    .my-ad-numbers span { font-size: 10.5px; }
    .my-ad-tags { gap: 6px; }
    .my-ad-tag { padding: 4px 10px; font-size: 12.5px; }
    .my-ad-weekdays { gap: 6px; padding: 10px; }

    .my-ad .client-booking-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .my-ad .client-booking-actions .client-btn { height: auto; min-height: 40px; padding: 6px 8px; white-space: normal; text-align: center; line-height: 1.15; }

    /* Only the status (its explanation is long) and without the days it works (the button of the availability is below) */
    .my-ad-status > span:not(.client-status),
    .my-ad-weekdays { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .client-btn,
    .client-booking.is-flash { transition: none; animation: none; }
}

/* ---------- the plans of the advertiser: its current one (members.my-plan). The three ones (members.plans) and the badge
   of each plan (plan-badge), in plans.css ---------- */

.my-plan { margin-bottom: 18px; }
.my-plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.my-plan-head .client-section-title { margin: 0; }
.my-plan-date { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--client-muted); font-size: 14.5px; font-weight: 700; }

.my-plan-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid var(--client-amber-border);
    border-radius: 8px;
    background: var(--client-amber-soft);
    color: var(--client-amber);
    font-size: 14px;
    font-weight: 700;
}

.my-plan-requests { margin-top: 14px; }
.my-plan-requests > p:not(.my-plan-warning) { margin: 8px 0 0; color: var(--client-muted); font-size: 14px; font-weight: 700; }

/* ---------- the optional verification of its identity with Didit (members.identity-verification) ---------- */
.identity-card { margin-bottom: 18px; }
.identity-card .client-section-title { margin-bottom: 12px; }
.identity-card .client-alert { margin-bottom: 14px; }
.identity-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--client-muted); font-size: 14.5px; font-weight: 700; }
.identity-text { margin: 0 0 14px; color: var(--client-text); font-size: 15px; font-weight: 600; line-height: 1.45; }
.identity-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.identity-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--client-muted); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.identity-list li > i { flex: none; margin-top: 1px; color: var(--client-navy); font-size: 17px; line-height: 1; }
.identity-list strong { color: var(--client-text); font-weight: 800; }
.identity-list a, .identity-consent a { color: var(--client-pink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.identity-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.identity-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--client-text); font-size: 14.5px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.identity-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--client-pink); }
.identity-error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--client-red); font-size: 14px; font-weight: 700; }

/* The contact requests used of its plan */
.plans-meter { height: 10px; border-radius: 999px; background: #eef2f9; overflow: hidden; }
.plans-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff4f8b, var(--client-pink)); }
.plans-meter.is-full span { background: #d97706; }

/* The cards of the three plans (members.plans): its distance to the card of its current one */
.client-home .advertiser-plans-grid { width: 100%; margin-top: 34px; }

/* What it contracts (members.payment) */
.plans-features { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.plans-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--client-text); font-size: 15px; font-weight: 600; line-height: 1.35; }
.plans-features li > i { flex: none; margin-top: 1px; color: #16a34a; font-size: 19px; line-height: 1; }
.plans-features strong { color: var(--client-navy); font-weight: 800; }
.plans-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--client-muted); font-size: 14px; font-weight: 600; }

/* ---------- the payment of a plan, in the web (members.payment): what it contracts and the form of the card of Stripe ---------- */

.pay-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }

.pay-summary.is-premium { border-color: var(--client-pink-border); background: linear-gradient(180deg, var(--client-pink-soft) 0%, #fff 55%); }
.pay-summary.is-business { border-color: #cfdcf5; background: linear-gradient(180deg, #eef4ff 0%, #fff 55%); }

.pay-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pay-plan-price { color: var(--client-muted); font-size: 15px; font-weight: 600; }
.pay-plan-price strong { color: var(--client-navy); font-size: 26px; font-weight: 900; }
.pay-summary .plans-features { margin-top: 18px; gap: 11px; }

.pay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--client-line);
    color: var(--client-navy);
    font-size: 16px;
    font-weight: 800;
}

.pay-total strong { color: var(--client-pink); font-size: 30px; font-weight: 900; }
.pay-note { margin: 10px 0 0; color: var(--client-muted); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

#paymentElement { min-height: 160px; }
.pay-error { min-height: 0; margin: 10px 0 0; color: var(--client-red); font-size: 14px; font-weight: 700; }
.pay-error:empty { display: none; }
.pay-button { width: 100%; height: 52px; margin-top: 18px; font-size: 16px; }
.pay-button[disabled] { cursor: progress; opacity: 0.75; transform: none; }
.pay-secure { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--client-muted); font-size: 13px; font-weight: 600; }
.pay-secure i { color: #16a34a; }

@media (max-width: 860px) {
    .pay-grid { grid-template-columns: 1fr; }
}

/* The cancellation of a plan (members.plans): the usual reasons, to write it with a click */
.cancel-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

.cancel-reason {
    padding: 7px 12px;
    border: 1px solid var(--client-line);
    border-radius: 999px;
    background: #fff;
    color: var(--client-navy);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.cancel-reason:hover { border-color: var(--client-pink-border); background: var(--client-pink-soft); color: var(--client-pink); }
.cancel-error { display: block; margin-top: 6px; color: var(--client-red); font-size: 13.5px; font-weight: 700; }
