/* e2-account.css — Phase E2 (FABLE-REVIEW-5.4 §3/§6.5), loaded after pages.css. Tokens: var(--am24-*) only.
   Covers: account nav, My ads, Messages, Favourites, Saved searches, Profile extras, add/edit listing form, success page. */

/* ---------- account nav (6 items) ---------- */
.am24-acct-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am24-s1) var(--am24-s3); padding: var(--am24-s2); }
.am24-acct-nav__hello { margin: 0; }
.am24-acct-nav ul { flex: 1 1 auto; min-width: 0; }
.am24-acct-nav li.am24-acct-nav__out { margin-left: auto; }
.am24-account-menu a.active { color: var(--am24-accent); font-weight: 600; }

/* shared small bits */
.am24-back { display: inline-flex; align-items: center; min-height: var(--am24-tap); margin: 0 0 var(--am24-s1); font-weight: 600; font-size: var(--am24-fs-sm); }
.am24-empty { background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: var(--am24-s5) var(--am24-s3); text-align: center; }
.am24-empty__title { margin: 0 0 4px; font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); }
.am24-empty__text { margin: 0 0 var(--am24-s3); color: var(--am24-muted); }
.am24-empty .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--am24-s4); border-radius: var(--am24-radius-pill); background: var(--am24-accent); color: #fff !important; font-weight: 600; }
.am24-empty .button:hover { background: var(--am24-accent-hover); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* More account pages (bottom of Profile & settings and My ads) */
.am24-acct-more-links { margin: var(--am24-s4) 0 0; padding-top: var(--am24-s2); border-top: 1px solid var(--am24-border); }
.am24-acct-more-links__title { margin: 0 0 var(--am24-s1); font-size: var(--am24-fs-sm); font-weight: 600; color: var(--am24-muted); text-transform: none; }
.am24-acct-more-links ul { display: flex; flex-wrap: wrap; gap: 4px var(--am24-s3); margin: 0; padding: 0; list-style: none; }
.am24-acct-more-links li { padding: 0; height: auto; }
.am24-acct-more-links a { display: inline-flex; align-items: center; min-height: var(--am24-tap); font-size: var(--am24-fs-sm); color: var(--am24-accent); }

/* Verification card (profile) */
.am24-verify { margin: var(--am24-s3) 0 0; background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: var(--am24-s2) var(--am24-s3); }
.am24-verify__title { margin: 0 0 var(--am24-s1); font-size: var(--am24-fs-h3); font-weight: 700; }
.am24-verify__list { list-style: none; margin: 0; padding: 0; }
.am24-verify__item { display: grid; grid-template-columns: 28px 70px minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--am24-border); margin: 0; height: auto; }
.am24-verify__item:first-child { border-top: 0; }
.am24-verify__mark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--am24-surface-2); color: var(--am24-muted); font-weight: 700; }
.am24-verify__item.is-ok .am24-verify__mark { background: var(--am24-tint); color: var(--am24-accent); }
.am24-verify__label { font-weight: 600; }
.am24-verify__value { color: var(--am24-text); overflow-wrap: anywhere; }
.am24-verify__value em { color: var(--am24-muted); font-style: normal; font-size: var(--am24-fs-sm); }
.am24-verify__note { color: var(--am24-muted); font-size: var(--am24-fs-sm); }

/* ---------- My ads ---------- */
.am24-ad-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--am24-s2); }
.am24-ad-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: var(--am24-tap); padding: 0 var(--am24-s2); border: 1px solid var(--am24-border); background: var(--am24-surface); color: var(--am24-text); border-radius: var(--am24-radius-pill); font: 600 15px var(--am24-font); cursor: pointer; }
.am24-ad-tabs button[aria-selected="true"] { background: var(--am24-accent); border-color: var(--am24-accent); color: #fff; }
.am24-ad-tabs__n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--am24-surface-2); color: var(--am24-text); font-size: 13px; line-height: 22px; text-align: center; }
.am24-ad-tabs button[aria-selected="true"] .am24-ad-tabs__n { background: rgba(255, 255, 255, .22); color: #fff; }
.am24-ad-tabs__empty { margin: 0 0 var(--am24-s2); padding: var(--am24-s4); text-align: center; color: var(--am24-muted); background: var(--am24-surface); border: 1px dashed var(--am24-border); border-radius: var(--am24-radius); }

section#listings.my-listings { display: grid; gap: var(--am24-s2); }
section#listings.my-listings article.am24-ad {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--am24-s2); align-items: start;
    background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius);
    padding: var(--am24-s2); margin: 0 !important; float: none; width: 100%; max-width: none; min-height: 0; box-sizing: border-box;
}
section#listings.my-listings article.am24-ad[hidden] { display: none; }
section#listings.my-listings article.am24-ad:hover { box-shadow: var(--am24-shadow-hover); }
section#listings.my-listings article.am24-ad.featured { border-color: var(--am24-accent); }
.am24-ad__pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--am24-surface-2); }
.am24-ad__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.am24-ad__count { position: absolute; right: 8px; bottom: 8px; min-width: 24px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.am24-ad__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.am24-ad__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--am24-s1); }
.am24-ad__title { margin: 0; padding: 0; font-size: 17px; line-height: 1.35; font-weight: 700; min-width: 0; }
#controller_area section#listings.my-listings .am24-ad__title a, #controller_area section#listings.my-listings .am24-ad__title a:link { color: var(--am24-text); font-size: inherit; font-weight: 700; overflow-wrap: anywhere; }
#controller_area section#listings.my-listings .am24-ad__title a:hover { color: var(--am24-accent); }
.am24-badge { flex: 0 0 auto; display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 20px; background: var(--am24-surface-2); color: var(--am24-text); white-space: nowrap; }
.am24-badge--active { background: var(--am24-tint); color: var(--am24-accent); }
.am24-badge--pending, .am24-badge--approval, .am24-badge--incomplete { background: #FFF3D6; color: #7A4B00; }
.am24-badge--expired { background: #FDECEA; color: var(--am24-danger); }
.am24-ad__price { font-size: 18px; font-weight: 700; color: var(--am24-text); }
.am24-ad__meta { display: flex; flex-wrap: wrap; gap: 4px var(--am24-s3); margin: 0; font-size: var(--am24-fs-sm); }
.am24-ad__meta > div { display: flex; gap: 6px; }
.am24-ad__meta dt { margin: 0; font-weight: 400; color: var(--am24-muted); }
.am24-ad__meta dd { margin: 0; color: var(--am24-text); font-weight: 500; }
.am24-ad__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.am24-ad__actions li { margin: 0; padding: 0; height: auto; }
#controller_area .my-listings .am24-act, #controller_area .my-listings .am24-act:link, #controller_area .my-listings .am24-act:visited {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--am24-border); border-radius: 999px; background: var(--am24-surface);
    color: var(--am24-text); font: 600 14px var(--am24-font); white-space: nowrap; cursor: pointer; text-decoration: none;
}
#controller_area .my-listings .am24-act:hover { border-color: var(--am24-accent); color: var(--am24-accent); }
#controller_area .my-listings .am24-act--edit, #controller_area .my-listings .am24-act--edit:link, #controller_area .my-listings .am24-act--edit:visited { background: var(--am24-accent); border-color: var(--am24-accent); color: #fff; }
#controller_area .my-listings .am24-act--edit:hover { background: var(--am24-accent-hover); border-color: var(--am24-accent-hover); color: #fff; }
#controller_area .my-listings .am24-act--close, #controller_area .my-listings .am24-act--close:link, #controller_area .my-listings .am24-act--close:visited { color: var(--am24-danger); }
#controller_area .my-listings .am24-act--close:hover { border-color: var(--am24-danger); color: var(--am24-danger); }
#controller_area .my-listings .am24-act--feature, #controller_area .my-listings .am24-act--feature:link, #controller_area .my-listings .am24-act--feature:visited { border-color: var(--am24-accent); color: var(--am24-accent); font-weight: 600; }
#controller_area .my-listings .am24-act:before, #controller_area .my-listings .am24-act:after { content: none; display: none; }

/* beat e2-category.css grid rule (#controller_area section#listings > article.item) on the My ads list */
#controller_area section#listings.my-listings > article.item.am24-ad { flex: none; max-width: none; width: 100%; }

/* Sort-by row on My ads: keep, small */
.my-listings ~ .grid_navbar, .grid_navbar + .am24-ad-tabs { margin-top: var(--am24-s1); }

@media (max-width: 767px) {
    section#listings.my-listings article.am24-ad { grid-template-columns: 112px minmax(0, 1fr); padding: 12px; gap: 12px; }
    .am24-ad__title { font-size: 15px; }
    .am24-ad__head { flex-direction: column; gap: 4px; }
    .am24-ad__meta { gap: 2px var(--am24-s2); }
    .am24-ad__actions { grid-column: 1 / -1; }
    .am24-ad__body { display: contents; }
    .am24-ad__head, .am24-ad__price, .am24-ad__meta { grid-column: 2; }
    .am24-ad__pic { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
    .am24-ad__actions { grid-column: 1 / -1; margin-top: 4px; }
    .am24-act { min-height: var(--am24-tap); }
    .am24-ad-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .am24-ad-tabs::-webkit-scrollbar { display: none; }
    .am24-ad-tabs { gap: 6px; }
    .am24-ad-tabs button { flex: 0 0 auto; padding: 0 12px; gap: 6px; font-size: 14px; }
}

/* ---------- Messages: conversation list ---------- */
.am24-convs-wrap { padding: 0 !important; background: transparent !important; border: 0; overflow: hidden; }
body.my-messages-page aside.left { display: none; }
body.my-messages-page section#content { flex: 0 0 100%; max-width: 100%; width: 100%; }
.am24-convs-head, .am24-saved-head { padding: 10px var(--am24-s2); border-bottom: 1px solid var(--am24-border); }
.am24-convs-all { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 32px; font-size: var(--am24-fs-sm); color: var(--am24-muted); cursor: pointer; }
.am24-convs { list-style: none; margin: 0; padding: 0; }
.am24-conv { display: flex; align-items: stretch; margin: 0; padding: 0; height: auto; border-top: 1px solid var(--am24-border); }
.am24-conv:first-child { border-top: 0; }
.am24-conv__check { display: flex; align-items: center; justify-content: center; align-self: center; flex: 0 0 48px; margin: 0; cursor: pointer; }
.am24-conv__check input, .am24-convs-all input { position: static; margin: 0; }
.am24-conv__link, .am24-conv__link:link, .am24-conv__link:visited { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--am24-s2); padding: var(--am24-s2) var(--am24-s2) var(--am24-s2) 0; color: var(--am24-text); }
.am24-conv__link:hover { background: var(--am24-bg); }
.am24-conv__avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--am24-tint); color: var(--am24-accent); font-weight: 700; font-size: 18px; overflow: hidden; }
.am24-conv__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am24-conv__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.am24-conv__top { display: flex; justify-content: space-between; gap: var(--am24-s1); align-items: baseline; }
.am24-conv__name { color: var(--am24-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am24-conv__name small { font-weight: 400; color: var(--am24-muted); }
.am24-conv__time { flex: 0 0 auto; font-size: var(--am24-fs-xs); color: var(--am24-muted); }
.am24-conv__last { color: var(--am24-muted); font-size: var(--am24-fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am24-conv.is-new .am24-conv__name, .am24-conv.is-new .am24-conv__last { color: var(--am24-text); font-weight: 600; }
.am24-conv__dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--am24-accent); }
body .am24-convs-wrap .mass-actions { padding: 10px var(--am24-s2); border-top: 1px solid var(--am24-border); }
body .am24-convs-wrap .mass-actions a { display: inline-flex; align-items: center; min-height: var(--am24-tap); color: var(--am24-danger); font-weight: 600; }

/* ---------- Messages: thread ---------- */
div#messages_cont { max-height: 560px; overflow-y: auto; margin: 0 !important; padding: var(--am24-s2); background: var(--am24-bg); border: 1px solid var(--am24-border); border-radius: var(--am24-radius) var(--am24-radius) 0 0; }
ul#messages_area { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul#messages_area > li { position: relative; align-self: flex-start; max-width: min(560px, 86%); margin: 0; padding: 10px 14px; height: auto; background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: 16px 16px 16px 4px; color: var(--am24-text); line-height: 1.5; overflow-wrap: anywhere; }
ul#messages_area > li.me { align-self: flex-end; background: var(--am24-tint); border-color: transparent; border-radius: 16px 16px 4px 16px; }
ul#messages_area > li:before, ul#messages_area > li:after { display: none !important; }
ul#messages_area > li > div:first-child:not(.date) { font-size: var(--am24-fs-xs); color: var(--am24-muted); margin-bottom: 4px; padding: 0; background: none; }
ul#messages_area > li > div:first-child:not(.date) a { color: var(--am24-accent); font-weight: 600; }
ul#messages_area > li div.date { margin: 4px 0 0; font-size: var(--am24-fs-xs); color: var(--am24-muted); text-align: right; padding: 0; }
ul#messages_area > li > span.delete { top: 6px; right: 6px; }
ul#messages_area > li.removed { opacity: .6; }
div.send-controls { display: flex; gap: var(--am24-s1); align-items: flex-end; margin: 0 !important; width: 100%; box-sizing: border-box; padding: var(--am24-s2); background: var(--am24-surface); border: 1px solid var(--am24-border); border-top: 0; border-radius: 0 0 var(--am24-radius) var(--am24-radius); }
div.send-controls > textarea { flex: 1 1 auto; min-height: 80px; width: auto; margin: 0; }
div.send-controls > div { flex: 0 0 auto; margin: 0; padding: 0; width: auto; }
div.send-controls .textarea_counter, div.send-controls > .counter { display: none; }
@media (max-width: 767px) {
    ul#messages_area > li { max-width: 92%; }
    div.send-controls { flex-direction: column; align-items: stretch; }
    div.send-controls > div input[type=button] { width: 100%; }
}

/* ---------- Saved searches ---------- */
#saved_search_obj.content-padding { background: var(--am24-surface) !important; border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: 0 !important; overflow: hidden; }
#saved_search_obj > .am24-empty { border: 0; }
.am24-saved { list-style: none; margin: 0; padding: 0; }
.am24-saved__item { display: flex; align-items: flex-start; gap: var(--am24-s2); margin: 0; padding: var(--am24-s2); height: auto; border-top: 1px solid var(--am24-border); background: none; }
.am24-saved__item:first-child { border-top: 0; }
.am24-saved__check { flex: 0 0 24px; margin: 8px 0 0; padding: 0; width: auto; }
.am24-saved__main { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; width: auto; }
.am24-saved__crit { display: flex; flex-wrap: wrap; gap: 6px; }
.am24-saved__crit .table-cell { display: inline-flex; flex: 0 0 auto; max-width: 100%; gap: 6px; padding: 4px 12px; margin: 0; width: auto; border: 0; background: var(--am24-surface-2); border-radius: 999px; font-size: var(--am24-fs-sm); }
.am24-saved__crit .table-cell .name { color: var(--am24-muted); width: auto !important; min-width: 0 !important; flex: 0 0 auto !important; padding: 0 !important; float: none; font-weight: 400; font-size: inherit; }
.am24-saved__crit .table-cell .value { color: var(--am24-text); font-weight: 600; padding: 0 !important; flex: 0 1 auto !important; float: none; width: auto !important; }
.am24-saved__meta { display: flex; flex-wrap: wrap; gap: 4px var(--am24-s2); align-items: center; margin-top: 10px; font-size: var(--am24-fs-sm); color: var(--am24-muted); }
.am24-saved__status .active, .am24-saved__status .approval { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.am24-saved__status .active { background: var(--am24-tint); color: var(--am24-accent); }
.am24-saved__status .approval { background: var(--am24-surface-2); color: var(--am24-muted); }
.am24-saved__actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.am24-saved__show { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 var(--am24-s3); border-radius: 999px; background: var(--am24-accent); color: #fff !important; font-weight: 600; font-size: 14px; }
.am24-saved__show:hover { background: var(--am24-accent-hover); }
.am24-saved__del { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; color: var(--am24-danger) !important; font-weight: 600; font-size: 14px; }
#saved_search_obj #mass_actions { padding: 10px var(--am24-s2); border-top: 1px solid var(--am24-border); display: flex; gap: var(--am24-s3); }
#saved_search_obj #mass_actions a { display: inline-flex; align-items: center; min-height: var(--am24-tap); font-weight: 600; }
#saved_search_obj #mass_actions.hide { display: none; }
@media (max-width: 575px) {
    .am24-saved__item { flex-wrap: wrap; }
    .am24-saved__main { flex: 1 1 calc(100% - 48px); }
    .am24-saved__actions { flex: 1 1 100%; flex-direction: row; }
    .am24-saved__actions > * { flex: 1 1 0; }
}

/* ---------- Add / edit listing form ---------- */
#listing_form .content-padding { padding: 0 !important; }
#listing_form .fieldset { background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: var(--am24-s2) var(--am24-s3) var(--am24-s3); margin: 0 0 var(--am24-s2); }
#listing_form .fieldset > header { margin: 0 0 var(--am24-s2); padding: 0 0 var(--am24-s1); font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--am24-border); background: none; pointer-events: none; }
#listing_form .fieldset > header .arrow { display: none; }
#listing_form .fieldset > header::before, #listing_form .fieldset > header::after { display: none; }
#listing_form .fieldset.hidden-default > .body { display: block; }
#listing_form .fieldset .submit-cell:last-child { margin-bottom: 0; }
.am24-hint { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--am24-tint); color: var(--am24-accent-hover); font-size: var(--am24-fs-sm); line-height: 1.45; }
.am24-hint--photo { margin: 0 0 var(--am24-s1); }
.am24-counter { margin-top: 6px; font-size: var(--am24-fs-xs); color: var(--am24-muted); }
.am24-counter.is-short { color: var(--am24-danger); }
#sf_field_title .am24-counter, #sf_field_description_add .am24-counter { display: block; }
/* health tiles: 2 columns, each option a bordered tile */
#sf_field_health > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
#sf_field_health > .row > .custom-input { width: auto; max-width: none; flex: none; padding: 0; margin: 0; float: none; }
#sf_field_health .custom-input > label { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 8px 12px; border: 1px solid var(--am24-border); border-radius: 8px; background: var(--am24-surface); cursor: pointer; }
#sf_field_health .custom-input > label:hover { border-color: var(--am24-accent); }
#sf_field_health .custom-input > label:has(input:checked) { border-color: var(--am24-accent); background: var(--am24-tint); }
#sf_field_health .custom-input > label > input { margin: 0; }
@media (max-width: 575px) { #sf_field_health > .row { grid-template-columns: 1fr; } }
#listing_form .fieldset { overflow: visible; }
/* native datepicker */
.ui-datepicker { background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); box-shadow: var(--am24-shadow-hover); font-family: var(--am24-font); padding: 8px; }
.ui-datepicker .ui-datepicker-header { background: var(--am24-tint); border: 0; border-radius: 8px; color: var(--am24-text); }
.ui-datepicker .ui-state-default { background: var(--am24-surface); border: 1px solid transparent; color: var(--am24-text); text-align: center; border-radius: 6px; }
.ui-datepicker .ui-state-hover { background: var(--am24-tint); border-color: var(--am24-accent); color: var(--am24-text); }
.ui-datepicker .ui-state-active, .ui-datepicker .ui-state-highlight { background: var(--am24-accent); border-color: var(--am24-accent); color: #fff; }
#listing_form .form-media .submit-cell, .form-media > .submit-cell { background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: var(--am24-s2) var(--am24-s3); margin: 0 0 var(--am24-s2); }
.upload-zone { border-radius: var(--am24-radius); border-color: var(--am24-accent); background: var(--am24-tint); }
.upload-zone > span { color: var(--am24-text); }
/* steps bar */
ul.steps { border-radius: var(--am24-radius); overflow: hidden; }
@media (max-width: 767px) {
    #listing_form .fieldset { padding: var(--am24-s2); }
    #listing_form .fieldset > header { font-size: 16px; }
}

/* ---------- success page ---------- */
.am24-done { max-width: 560px; margin: var(--am24-s4) auto; padding: var(--am24-s5) var(--am24-s3); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); text-align: center; }
.am24-done__icon { width: 64px; height: 64px; margin: 0 auto var(--am24-s2); border-radius: 50%; background: var(--am24-tint); position: relative; }
.am24-done__icon:after { content: ''; position: absolute; left: 22px; top: 15px; width: 12px; height: 24px; border: solid var(--am24-accent); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.am24-done__title { margin: 0 0 var(--am24-s1); font-size: var(--am24-fs-h2); font-weight: 700; color: var(--am24-text); }
.am24-done__text { margin: 0 0 var(--am24-s3); color: var(--am24-muted); }
.am24-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--am24-s1); }
.am24-done__btn, .am24-done__btn:link, .am24-done__btn:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--am24-s3); border-radius: 999px; background: var(--am24-accent); color: #fff !important; font-weight: 600; }
.am24-done__btn:hover { background: var(--am24-accent-hover); }
.am24-done__btn--wa, .am24-done__btn--wa:link, .am24-done__btn--wa:visited { background: var(--am24-surface); color: var(--am24-accent) !important; border: 1px solid var(--am24-accent); }
.am24-done__more { margin: var(--am24-s3) 0 0; font-size: var(--am24-fs-sm); color: var(--am24-muted); }
/* age unit select was clipped */
#sf_field_age select, #sf_field_age .select2-container { min-width: 120px; }

/* =====================================================================================================
   E3 (Phase E3, builder A): account sidebar layout, white boxes, profile, My ads, favourites, alerts,
   two-pane messages, post-ad flow. Tokens only.
   ===================================================================================================== */

/* ---------- layout: sidebar card + content ---------- */
.am24-acct-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.am24-acct-wrap > .row { margin: 0; min-width: 0; }
.am24-acct-wrap #content, .am24-acct-wrap aside.left { padding: 0; flex: 0 0 100%; max-width: 100%; width: 100%; }
.am24-acct-wrap #content > h1, .am24-acct-wrap #content > .h1-nav h1 { margin: 0 0 var(--am24-s2); padding: var(--am24-s2) var(--am24-s3); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); font-size: var(--am24-fs-h2); line-height: 1.25; }
.am24-acct-wrap #controller_area { min-width: 0; }
.am24-acct-wrap #controller_area > .content-padding:not(.am24-prof) { padding: 0; background: none; border: 0; }
@media (min-width: 992px) {
    .am24-acct-wrap { grid-template-columns: 264px minmax(0, 1fr); column-gap: var(--am24-s3); }
    .am24-acct-wrap > .am24-acct-nav { grid-column: 1; grid-row: 1; position: sticky; top: 88px; }
    .am24-acct-wrap > .row { grid-column: 2; grid-row: 1; }
    body.my-messages-page .am24-acct-wrap { grid-template-columns: minmax(0, 1fr); }
    body.my-messages-page .am24-acct-wrap > .am24-acct-nav, body.my-messages-page .am24-acct-wrap > .row { grid-column: 1; grid-row: auto; position: static; }
}

/* ---------- sidebar card (>= 992) / pill row (below) ---------- */
.am24-acct-wrap > .am24-acct-nav { display: block; margin: 0 0 var(--am24-s2); padding: var(--am24-s2); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); }
.am24-acct-nav__hello { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--am24-s1); font-size: var(--am24-fs-sm); }
.am24-acct-nav__avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--am24-accent); color: #fff; font-weight: 700; font-size: 20px; }
.am24-acct-nav__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am24-acct-nav__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.am24-acct-nav__welcome { color: var(--am24-muted); font-size: var(--am24-fs-xs); }
.am24-acct-nav__name { color: var(--am24-text); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am24-acct-wrap > .am24-acct-nav ul { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0; padding: 0 0 4px; scrollbar-width: none; }
.am24-acct-wrap > .am24-acct-nav ul::-webkit-scrollbar { display: none; }
.am24-acct-wrap > .am24-acct-nav li { flex: 0 0 auto; margin: 0; }
.am24-acct-wrap > .am24-acct-nav li.am24-acct-nav__out { margin-left: 0; }
@media (min-width: 992px) {
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav ul { display: block; overflow: visible; padding: var(--am24-s1) 0 0; border-top: 1px solid var(--am24-border); }
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav li { display: block; }
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav ul li a, .am24-acct-wrap > .am24-acct-nav ul li a:link, .am24-acct-wrap > .am24-acct-nav ul li a:visited {
        display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 var(--am24-s2) 0 12px; border-radius: 0; border-left: 3px solid transparent; background: none; font-size: 15px; font-weight: 600; color: var(--am24-text); white-space: normal; }
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav ul li a:hover { background: var(--am24-bg); color: var(--am24-accent); }
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav ul li a.active { background: var(--am24-tint); border-left-color: var(--am24-accent); color: var(--am24-accent); }
    body:not(.my-messages-page) .am24-acct-wrap > .am24-acct-nav li.am24-acct-nav__out { margin-top: var(--am24-s1); padding-top: var(--am24-s1); border-top: 1px solid var(--am24-border); }
}
.am24-acct-wrap > .am24-acct-nav li.am24-acct-nav__out a, .am24-acct-wrap > .am24-acct-nav li.am24-acct-nav__out a:link, .am24-acct-wrap > .am24-acct-nav li.am24-acct-nav__out a:visited { background: none; color: var(--am24-danger); }
@media (max-width: 991px) {
    .am24-acct-wrap > .am24-acct-nav ul li a, .am24-acct-wrap > .am24-acct-nav ul li a:link, .am24-acct-wrap > .am24-acct-nav ul li a:visited { min-height: var(--am24-tap); }
    .am24-acct-wrap > .am24-acct-nav { padding: 12px var(--am24-s2) 8px; }
}

/* ---------- white boxes, buttons ---------- */
.am24-box { margin: 0 0 var(--am24-s2); padding: var(--am24-s3); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); }
.am24-box__title { margin: 0 0 var(--am24-s2); font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); }
.am24-box__text { margin: 0 0 var(--am24-s2); color: var(--am24-muted); }
.am24-box__row { display: flex; flex-wrap: wrap; gap: var(--am24-s1); }
.am24-note { margin: var(--am24-s1) 0 var(--am24-s2); color: var(--am24-muted); font-size: var(--am24-fs-sm); }
.am24-btn, .am24-btn:link, .am24-btn:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--am24-s3); border: 1px solid var(--am24-accent); border-radius: var(--am24-radius-pill); background: var(--am24-accent); color: #fff !important; font: 600 15px var(--am24-font); cursor: pointer; text-decoration: none; }
.am24-btn:hover { background: var(--am24-accent-hover); border-color: var(--am24-accent-hover); }
.am24-btn--ghost, .am24-btn--ghost:link, .am24-btn--ghost:visited { background: var(--am24-surface); color: var(--am24-accent) !important; }
.am24-btn--ghost:hover { background: var(--am24-tint); }
.am24-btn--danger, .am24-btn--danger:link, .am24-btn--danger:visited { background: var(--am24-surface); border-color: var(--am24-danger); color: var(--am24-danger) !important; }
.am24-btn--danger:hover { background: #FDECEA; border-color: var(--am24-danger); }

/* ---------- My account / My profile ---------- */
body.my-profile-page .am24-acct-wrap > .row { display: grid; grid-template-columns: minmax(0, 1fr); }
body.my-profile-page .am24-acct-wrap #content { display: contents; }
body.my-profile-page #content > h1 { order: 0; }
body.my-profile-page #content > #system_message { order: 0; }
body.my-profile-page aside.left { order: 1; margin: 0 0 var(--am24-s2); }
body.my-profile-page #content > #controller_area { order: 2; }
body.my-profile-page #content > aside.top, body.my-profile-page #content > aside.middle, body.my-profile-page #content > aside.bottom { order: 3; }
body.my-profile-page aside.left section.side_block { margin: 0; padding: var(--am24-s2) var(--am24-s3); }
body.my-profile-page aside.left section.side_block > h3 { display: none; }
body.my-profile-page .my-profile-sidebar { display: flex; flex-direction: row !important; align-items: center; gap: var(--am24-s3) !important; }
body.my-profile-page .my-profile-sidebar .picture { flex: 0 0 auto; }
body.my-profile-page .my-profile-sidebar .image-preview { width: 88px; height: 88px; margin: 0 !important; border-radius: 50%; overflow: hidden; background: var(--am24-surface-2); }
body.my-profile-page .my-profile-sidebar .image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.my-profile-page .my-profile-sidebar #navigation { margin-top: 6px; font-size: var(--am24-fs-sm); }
body.my-profile-page .my-profile-sidebar .info { min-width: 0; }
body.my-profile-page .my-profile-sidebar .info .table-cell { margin: 0; }
body.my-profile-page ul.tabs.tabs-hash { display: none; }
body.my-profile-page #controller_area > .content-padding.am24-prof { padding: 0; background: none; border: 0; }
.am24-prof .submit-cell { margin-bottom: var(--am24-s2); }
.am24-prof .submit-cell .name { font-weight: 600; }
.am24-prof .am24-box > .fieldset { margin: 0; border: 0; padding: 0; background: none; }
.am24-prof .am24-box--pw > .fieldset > header { margin: 0; padding: 0; border: 0; font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); text-transform: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.am24-prof .am24-box--pw > .fieldset > .body { padding-top: var(--am24-s2); }
.am24-prof .am24-verify { margin: 0 0 var(--am24-s2); padding: var(--am24-s3); }
.am24-prof .am24-box--close { padding: 0; }
.am24-close > summary { display: flex; align-items: center; min-height: 56px; padding: 0 var(--am24-s3); font-weight: 700; color: var(--am24-text); cursor: pointer; list-style: none; }
.am24-close > summary::-webkit-details-marker { display: none; }
.am24-close > summary:after { content: ''; margin-left: auto; width: 8px; height: 8px; border: solid var(--am24-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.am24-close[open] > summary:after { transform: rotate(-135deg); }
.am24-close > p, .am24-close > div { margin: 0 var(--am24-s3) var(--am24-s3); }
@media (max-width: 575px) {
    .am24-box { padding: var(--am24-s2); }
    body.my-profile-page aside.left section.side_block { padding: var(--am24-s2); }
    body.my-profile-page .my-profile-sidebar { gap: var(--am24-s2) !important; }
}
body.my-profile-page aside.left section.side_block { width: 100%; max-width: none; float: none; box-sizing: border-box; }
body.my-profile-page aside.left section.side_block > .clearfix { padding: 0; }
body.my-profile-page .my-profile-sidebar .info .table-cell { display: flex; gap: 8px; width: auto; float: none; }
body.my-profile-page .my-profile-sidebar .info .table-cell .name, body.my-profile-page .my-profile-sidebar .info .table-cell .value { float: none; width: auto; padding: 0; color: var(--am24-text); }
body.my-profile-page .my-profile-sidebar .info .table-cell .name { color: var(--am24-muted); }
body.my-profile-page .inside-container > .row > aside.left, body.my-profile-page .inside-container > .row > section#content { flex: none; width: 100%; max-width: none; }
body.my-profile-page .am24-acct-wrap #controller_area > .content-padding.am24-prof { background: none; border: 0; padding: 0; box-shadow: none; }
body.my-profile-page .my-profile-sidebar .info .table-cell .value { flex: 1 1 auto; min-width: 0; }

/* ---------- Messages two-pane (ref 088) ---------- */
body.my-messages-page .am24-acct-wrap > .am24-acct-nav { margin-bottom: var(--am24-s2); }
.am24-msgs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--am24-s2); height: clamp(520px, calc(100vh - 260px), 760px); }
.am24-msgs__list { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); }
.am24-msgs__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px var(--am24-s2); border-bottom: 1px solid var(--am24-border); position: sticky; top: 0; background: var(--am24-surface); z-index: 1; }
.am24-msgs__all { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 1px solid var(--am24-accent); border-radius: var(--am24-radius-pill); background: var(--am24-tint); color: var(--am24-accent); font-weight: 600; font-size: 14px; }
.am24-msgs__unread { min-height: var(--am24-tap); padding: 0 16px; border: 1px solid var(--am24-border); border-radius: var(--am24-radius-pill); background: var(--am24-surface); color: var(--am24-text); font: 600 14px var(--am24-font); cursor: pointer; }
.am24-msgs__unread[aria-pressed="true"] { background: var(--am24-accent); border-color: var(--am24-accent); color: #fff; }
.am24-msgs.only-unread .am24-conv:not(.is-new) { display: none; }
.am24-msgs__none { margin: 0; padding: var(--am24-s3); color: var(--am24-muted); text-align: center; }
.am24-msgs__list .am24-convs { margin: 0; }
.am24-msgs__list .am24-conv__link, .am24-msgs__list .am24-conv__link:link, .am24-msgs__list .am24-conv__link:visited { padding: 14px var(--am24-s2); border-left: 3px solid transparent; }
.am24-msgs__list .am24-conv.is-current .am24-conv__link { background: var(--am24-tint); border-left-color: var(--am24-accent); }
.am24-conv__ad { font-size: var(--am24-fs-xs); font-weight: 600; color: var(--am24-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am24-msgs__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); overflow: hidden; }
.am24-pane-empty { margin: auto; padding: var(--am24-s4); text-align: center; }
.am24-thread__head { display: flex; align-items: center; gap: var(--am24-s2); padding: 12px var(--am24-s2); border-bottom: 1px solid var(--am24-border); }
.am24-thread__head .am24-back { margin: 0; font-size: 18px; }
.am24-back__t { display: none; font-size: var(--am24-fs-sm); }
@media (min-width: 768px) { .am24-thread__head .am24-back { display: none; } }
.am24-thread__who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.am24-thread__remove, .am24-thread__remove:link { display: inline-flex; align-items: center; min-height: var(--am24-tap); color: var(--am24-danger); font-weight: 600; font-size: 14px; }
.am24-pin { display: flex; align-items: center; gap: 12px; padding: 12px var(--am24-s2); border-bottom: 1px solid var(--am24-border); background: var(--am24-bg); }
.am24-pin__pic img { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.am24-pin__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.am24-pin__title, .am24-pin__title:link { font-weight: 700; color: var(--am24-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am24-pin__price { color: var(--am24-muted); font-size: var(--am24-fs-sm); }
.am24-pin .am24-pin__view { min-height: var(--am24-tap); padding: 0 16px; font-size: 14px; }
.am24-msgs__pane div#messages_cont { flex: 1 1 auto; min-height: 0; max-height: none; border: 0; border-radius: 0; background: var(--am24-surface); }
.am24-msgs__pane div.send-controls { flex: 0 0 auto; border: 0; border-top: 1px solid var(--am24-border); border-radius: 0; align-items: center; }
.am24-msgs__pane div.send-controls > textarea { min-height: 48px; height: 48px; padding: 12px 16px; border-radius: var(--am24-radius-pill); resize: none; }
.am24-msgs__pane .text-message { margin: auto; padding: var(--am24-s3); color: var(--am24-muted); }
/* skeleton */
.am24-skel { padding: var(--am24-s3); display: flex; flex-direction: column; gap: 14px; }
.am24-skel i { display: block; height: 44px; width: 62%; border-radius: 16px; background: linear-gradient(90deg, var(--am24-surface-2) 25%, var(--am24-bg) 50%, var(--am24-surface-2) 75%); background-size: 200% 100%; animation: am24-skel 1.2s linear infinite; }
.am24-skel i:nth-child(even) { align-self: flex-end; width: 48%; }
@keyframes am24-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .am24-skel i { animation: none; } }
@media (max-width: 767px) {
    .am24-msgs { grid-template-columns: minmax(0, 1fr); height: auto; }
    .am24-msgs__pane { display: none; }
    .am24-msgs.has-thread .am24-msgs__list { display: none; }
    .am24-msgs.has-thread .am24-msgs__pane { display: flex; height: calc(100vh - 200px); min-height: 460px; }
    .am24-back__t { display: inline; }
    .am24-msgs__list { max-height: none; }
}

.am24-acct-wrap #controller_area { background: none; border: 0; padding: 0; box-shadow: none; }
.am24-msgs--pinned #messages_area li > .am24-re { display: none; }
@media (max-width: 767px) {
    .am24-msgs__pane div.send-controls { flex-direction: row; align-items: center; }
    .am24-msgs__pane div.send-controls > div input[type=button] { width: auto; }
    .am24-pin .am24-pin__view { padding: 0 12px; font-size: 13px; }
}
body.my-messages-page .am24-acct-wrap > .am24-acct-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--am24-s3); }
body.my-messages-page .am24-acct-nav__hello { margin: 0; }
body.my-messages-page .am24-acct-wrap > .am24-acct-nav ul { flex: 1 1 auto; padding: 0; }
@media (max-width: 767px) { body.my-messages-page .am24-acct-wrap > .am24-acct-nav { display: block; } }

/* ---------- Saved searches: Notify me switch ---------- */
.am24-switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--am24-tap); margin: 0; cursor: pointer; position: relative; font-weight: 600; color: var(--am24-text); font-size: var(--am24-fs-sm); }
.am24-switch input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.am24-switch__track { flex: 0 0 44px; width: 44px; height: 26px; border-radius: 999px; background: #C9CDD3; position: relative; transition: background .15s; }
.am24-switch__track:after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.am24-switch input:checked + .am24-switch__track { background: var(--am24-accent); }
.am24-switch input:checked + .am24-switch__track:after { transform: translateX(18px); }
.am24-switch input:focus-visible + .am24-switch__track { outline: 2px solid var(--am24-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .am24-switch__track, .am24-switch__track:after { transition: none; } }
body .am24-acct-wrap #controller_area { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body .am24-acct-wrap #content > h1, body .am24-acct-wrap #content > .h1-nav h1 { padding: var(--am24-s2) var(--am24-s3) !important; }
.am24-pin .am24-pin__view { flex: 0 0 auto; }

/* ---------- Post an ad: step 1 chips (ref 025, 029) ---------- */
body.add-listing-page .inside-container > .row > section#content { flex: 0 1 760px; width: 100%; max-width: 760px; margin: 0 auto; }
body.edit-listing-page .inside-container > .row > section#content { max-width: 760px; margin-left: auto; margin-right: auto; }
.am24-pick { display: none; }
.am24-pick-on .am24-pick { display: block; }
.am24-pick-on > .text-notice, .am24-pick-on > .category-selection, .am24-pick-on > .form-buttons, .am24-pick-on > .add-user-category { display: none !important; }
.am24-pick-on .category-selection, .am24-pick-on .form-buttons { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; display: block; }
.am24-pick { padding: var(--am24-s3); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); }
.am24-pick__q { margin: 0 0 var(--am24-s2); font-size: var(--am24-fs-h3); font-weight: 700; }
.am24-pick__chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--am24-s1); margin: 0 0 var(--am24-s3); min-height: 96px; }
.am24-pick:not(.is-ready) .am24-pick__chips:empty:before { content: 'Loading...'; grid-column: 1 / -1; color: var(--am24-muted); align-self: center; }
.am24-pick .am24-chip { color: var(--am24-text) !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 8px 4px; border: 1px solid var(--am24-border); border-radius: var(--am24-radius); background: var(--am24-surface); color: var(--am24-text); font: 600 14px var(--am24-font); cursor: pointer; }
.am24-pick .am24-chip img { width: 40px; height: 40px; }
.am24-pick .am24-chip:hover { border-color: var(--am24-accent); }
.am24-pick .am24-chip[aria-pressed="true"] { border-color: var(--am24-accent); background: var(--am24-tint); box-shadow: inset 0 0 0 1px var(--am24-accent); color: var(--am24-accent); }
.am24-seg { display: inline-flex; padding: 4px; margin: 0 0 var(--am24-s3); background: var(--am24-surface-2); border-radius: var(--am24-radius-pill); }
.am24-seg__opt { position: relative; margin: 0; cursor: pointer; }
.am24-seg__opt input.default { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.am24-seg__opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--am24-s3); border-radius: var(--am24-radius-pill); font-weight: 600; }
.am24-seg__opt input:checked + span { background: var(--am24-accent); color: #fff; }
.am24-seg__opt input:focus-visible + span { outline: 2px solid var(--am24-accent); outline-offset: 2px; }
.am24-pick__breed { margin: 0 0 var(--am24-s2); }
.am24-pick__breed.is-empty { opacity: .6; }
.am24-pick__label { display: block; margin: 0 0 6px; font-weight: 600; }
.am24-pick__breed select, .am24-pick .select2-container .select2-selection--single { min-height: 48px; width: 100%; }
.am24-pick .select2-container--default .select2-selection--single { border: 1px solid var(--am24-border); border-radius: var(--am24-radius-input); display: flex; align-items: center; }
.am24-pick .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.am24-pick__msg { min-height: 20px; margin: 0 0 var(--am24-s1); color: var(--am24-danger); font-size: var(--am24-fs-sm); }
.am24-pick__start { width: 100%; }
@media (max-width: 575px) { .am24-pick { padding: var(--am24-s2); } .am24-pick__chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Post an ad: form order, quality bar ---------- */
.listing-form { display: flex; flex-direction: column; }
.listing-form > .form-crossed { order: -3; }
.listing-form > .form-media { order: -2; }
.listing-form > .form-fields { order: -1; }
.listing-form > .form-buttons { order: 5; }
#listing_form, #listing_form > .content-padding { display: flex; flex-direction: column; }
#listing_form > .fieldset { margin-left: 0; margin-right: 0; }
#fs_lf_fieldset, #sf_field_account_address_on_map { display: none !important; }
#fs_pet_details { order: 1; } #fs_health_papers { order: 2; } #fs_common { order: 3; margin-bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; border-bottom: 0 !important; }
#fs_additional_information { order: 4; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; border-top: 0 !important; }
#fs_additional_information > header { display: none; }
#fs_location { order: 5; }
.listing-form .form-media .submit-cell { display: block; }
.listing-form .form-media .submit-cell > .name { width: auto; padding: 0 0 var(--am24-s1); font-size: var(--am24-fs-h3); font-weight: 700; float: none; }
.listing-form .form-media .submit-cell > .field { width: 100%; max-width: none; float: none; padding: 0; }
.am24-quality { position: sticky; top: 72px; z-index: 5; margin: 0 0 var(--am24-s2); padding: 12px var(--am24-s2); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); }
.am24-quality__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--am24-s2); margin-bottom: 8px; }
.am24-quality__hint { color: var(--am24-muted); font-size: var(--am24-fs-sm); }
.am24-quality__bar { height: 8px; border-radius: 999px; background: var(--am24-surface-2); overflow: hidden; }
.am24-quality__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--am24-accent); transition: width .25s; }
@media (prefers-reduced-motion: reduce) { .am24-quality__bar i { transition: none; } }
.am24-done__boost { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: var(--am24-s3) 0 0; padding: var(--am24-s2); background: var(--am24-tint); border-radius: var(--am24-radius); }
.am24-done__boost span { color: var(--am24-muted); font-size: var(--am24-fs-sm); }

body.large.my-profile-page .inside-container > .row { gap: 0; }
body.large.my-profile-page .inside-container > .row > aside.left { flex: none; width: 100%; max-width: none; }
body.large.my-profile-page .inside-container > .row > #content { flex: none; width: 100%; max-width: none; }
body.large.my-messages-page .inside-container > .row, body.large.my-listings-page .inside-container > .row, body.large.my-favorites-page .inside-container > .row, body.large.saved-search-page .inside-container > .row { gap: 0; }
@media (max-width: 575px) { body.my-profile-page .my-profile-sidebar .info .table-cell { flex-direction: column; gap: 0; } }

/* =====================================================================================================
   E3 fix round 1
   ===================================================================================================== */
/* 1. pinned ad card */
.am24-pin { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; }
.am24-pin__pic { flex: 0 0 56px; }
.am24-pin__pic img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.am24-pin .am24-pin__txt { flex: 1 1 0; min-width: 0; }
.am24-pin .am24-pin__title { display: block; max-width: 100%; }
.am24-pin .am24-pin__price { font-weight: 700; color: var(--am24-accent); font-size: 15px; }
.am24-pin .am24-btn.am24-pin__view { flex: 0 0 auto; width: auto !important; max-width: max-content; min-height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 767px) {
    .am24-pin .am24-btn.am24-pin__view { display: none; }
    .am24-pin .am24-pin__title:after { content: ''; position: absolute; inset: 0; }
}

/* 2. profile card, email, password */
body.my-profile-page aside.left section.side_block { padding: 16px var(--am24-s3); }
body.my-profile-page aside.left section.side_block > .clearfix { margin: 0; padding: 0; }
body.my-profile-page .my-profile-sidebar { display: grid !important; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--am24-s2) !important; align-items: center; margin: 0; }
body.my-profile-page .my-profile-sidebar .picture { grid-column: 1; margin: 0; }
body.my-profile-page .my-profile-sidebar .image-preview-wrapper { display: block; }
body.my-profile-page .my-profile-sidebar .image-preview { width: 72px; height: 72px; margin: 0 !important; }
body.my-profile-page .my-profile-sidebar #navigation { display: flex; justify-content: center; margin-top: 8px; }
body.my-profile-page .my-profile-sidebar #navigation label.link { display: inline-flex; align-items: center; min-height: 28px; margin: 0; padding: 0 12px; border: 1px solid var(--am24-accent); border-radius: var(--am24-radius-pill); font-size: 13px; font-weight: 600; color: var(--am24-accent); cursor: pointer; }
body.my-profile-page .my-profile-sidebar #navigation nav.icons { display: none; }
body.my-profile-page .my-profile-sidebar #navigation.loaded nav.icons { display: flex; margin-left: 6px; }
body.my-profile-page .my-profile-sidebar .info { grid-column: 2; display: flex; flex-direction: column; gap: 2px; }
body.my-profile-page .my-profile-sidebar .info .table-cell { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0; white-space: nowrap; }
body.my-profile-page .my-profile-sidebar .info .table-cell:has(.value:empty) { display: none; }
body.my-profile-page .my-profile-sidebar .info .table-cell .name { flex: 0 0 auto; color: var(--am24-muted); font-weight: 400; }
body.my-profile-page .my-profile-sidebar .info .table-cell .value { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--am24-text); overflow: hidden; text-overflow: ellipsis; }
body.my-profile-page .my-profile-sidebar .info .table-cell .name:after { content: ''; }
.am24-prof form .submit-cell { margin-bottom: var(--am24-s1); }
.am24-prof form .submit-cell .field > label { padding: 8px 0 0 !important; }
.am24-prof form .submit-cell:has(> .field:not(:has(*))):not(:has(input)) { display: none; }
.am24-prof .am24-box--pw { padding: 0; }
body.my-profile-page #controller_area .am24-box--pw .fieldset > header, .am24-prof .am24-box--pw > .fieldset > header { display: flex; align-items: center; min-height: 56px; margin: 0; padding: 0 var(--am24-s3); border: 0 !important; font-size: var(--am24-fs-h3); font-weight: 700; cursor: pointer; }
.am24-prof .am24-box--pw > .fieldset > header .arrow { order: 2; margin-left: auto; }
.am24-prof .am24-box--pw > .fieldset > .body { padding: 0 var(--am24-s3) var(--am24-s3); border: 0; }
.am24-prof .am24-box--pw > .fieldset > .body > div { border: 0; padding: 0; }

/* 3. breadcrumbs off on account pages; mobile thread */
body.my-messages-page #bread_crumbs, body.my-profile-page #bread_crumbs, body.my-listings-page #bread_crumbs, body.my-favorites-page #bread_crumbs, body.saved-search-page #bread_crumbs { display: none; }
ul#messages_area > li > span.delete { display: none; }
@media (hover: hover) { ul#messages_area > li:hover > span.delete, ul#messages_area > li:focus-within > span.delete { display: block; } }
@media (max-width: 767px) {
    body.my-messages-page:has(.am24-msgs.has-thread) .am24-acct-wrap > .am24-acct-nav,
    body.my-messages-page:has(.am24-msgs.has-thread) .am24-acct-wrap #content > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
    body.my-messages-page:has(.am24-msgs.has-thread) .inside-container { padding-top: 8px !important; padding-bottom: 0 !important; margin-top: 0 !important; }
    .am24-msgs.has-thread .am24-msgs__pane { display: flex; flex-direction: column; height: calc(100vh - 128px); height: calc(100dvh - 128px); min-height: 0; }
    .am24-msgs__pane div#messages_cont { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    .am24-msgs__pane div.send-controls { position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--am24-surface); }
}

/* 5. edit / post form */
#listing_form .fieldset > .body > div { border: 0; padding: 0; }
#fs_common { padding-bottom: 0 !important; }
#fs_common .submit-cell:last-child { padding-bottom: 0; margin-bottom: 0; }
#fs_additional_information { padding-top: var(--am24-s1) !important; }
.listing-form .form-media .submit-cell { background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); padding: var(--am24-s2) var(--am24-s3) var(--am24-s3); }
.listing-form .form-media .submit-cell > .name { display: none; }
.listing-form .form-media .submit-cell:before { content: 'Photos'; display: block; margin: 0 0 var(--am24-s2); padding: 0 0 var(--am24-s1); border-bottom: 1px solid var(--am24-border); font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); }
.submit-cell:has(#sf_field_account_address_on_map) { display: none !important; }
.am24-counter { margin-top: 6px; line-height: 1; }
@media (max-width: 767px) { .listing-form .form-media .submit-cell { padding: var(--am24-s2); } }

/* 6. mobile pill row: fade + red Log out */
@media (max-width: 991px) {
    .am24-acct-wrap > .am24-acct-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}

/* 7. step 1 */
ul.steps li.current, ul.steps li.current a { background: var(--am24-tint); color: var(--am24-accent); font-weight: 600; }
.am24-pick:not(.has-pick) .am24-pick__start { opacity: .5; }
@media (max-width: 420px) { .am24-pick__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 8. My ads */
body.my-listings-page #controller_area { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--am24-s2); }
body.my-listings-page #controller_area > * { flex: 0 0 100%; min-width: 0; }
body.my-listings-page #controller_area > .am24-ad-tabs { order: 1; flex: 1 1 0; min-width: 0; }
body.my-listings-page #controller_area > .grid_navbar { order: 2; flex: 0 0 auto; margin: 0 0 var(--am24-s2); }
body.my-listings-page #controller_area > .am24-ad-tabs__empty, body.my-listings-page #controller_area > section#listings { order: 3; }
body.my-listings-page #controller_area > *:not(.am24-ad-tabs):not(.grid_navbar):not(.am24-ad-tabs__empty):not(#listings) { order: 4; }
.am24-ad__title, #controller_area section#listings.my-listings .am24-ad__title a { font-weight: 600 !important; font-size: 18px !important; }
.am24-ad__meta dd { color: var(--am24-muted); font-weight: 500; }
#controller_area .my-listings .am24-act { min-height: 44px; }
@media (max-width: 575px) {
    body.my-listings-page #controller_area > .am24-ad-tabs { flex: 0 0 100%; }
    body.my-listings-page #controller_area > .grid_navbar { order: 2; flex: 0 0 100%; }
    .am24-ad__actions { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* 9. messages list */
.am24-msgs__bar { justify-content: flex-start; }
.am24-msgs__list .am24-conv.is-new .am24-conv__link { background: #F7FAF6; }
.am24-conv.is-new .am24-conv__name, .am24-conv.is-new .am24-conv__last { font-weight: 700; color: var(--am24-text); }
.am24-conv__dot { align-self: center; }
.am24-conv__ad { font-size: 12px; font-weight: 400; color: var(--am24-muted); }

/* 4. inline pills in the public-profile box */
.am24-box__row .am24-btn { width: auto; flex: 0 0 auto; }
.am24-pin .am24-pin__title, .am24-pin .am24-pin__title:link { color: var(--am24-text); font-weight: 600; }

.listing-form .form-media .submit-cell { display: block !important; }
.listing-form .form-media .submit-cell > .field { display: block; width: 100%; max-width: none; margin: 0; padding: 0; float: none; }
.listing-form .form-media .submit-cell > .name:after, .listing-form .form-media .submit-cell:after { display: none; }

/* ===================== Post-ad: progress + wizard (2026-10-12, Pets4Homes-style) ===================== */
/* progress: 5 thin segments + "Step 2 of 5 Details"; replaces the grey arrow bar (no chevrons, no white notches) */
.am24-steps { margin: 0 0 var(--am24-s2); }
ul.steps.am24-steps__bar { display: flex; gap: 6px; height: auto; margin: 0 0 10px; padding: 0; overflow: visible; border-radius: 0; box-shadow: none; background: none; white-space: normal; }
ul.steps.am24-steps__bar > li { flex: 1 1 0; height: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; background: none !important; border: 0; }
ul.steps.am24-steps__bar > li::before, ul.steps.am24-steps__bar > li::after { display: none !important; content: none !important; }
ul.steps.am24-steps__bar > li a, ul.steps.am24-steps__bar > li.current a { display: block; padding: 8px 0 0; border-top: 4px solid var(--am24-border); background: none !important; color: var(--am24-muted); font-size: var(--am24-fs-xs); font-weight: 600; text-decoration: none; cursor: default; }
ul.steps.am24-steps__bar > li.past a { border-top-color: var(--am24-accent); color: var(--am24-text); cursor: pointer; }
ul.steps.am24-steps__bar > li.past a:hover { color: var(--am24-accent); }
ul.steps.am24-steps__bar > li.current a { border-top-color: var(--am24-accent); color: var(--am24-accent); }
.am24-steps__count { display: none; margin: 0; font-size: var(--am24-fs-sm); color: var(--am24-muted); }
.am24-steps__count strong { color: var(--am24-text); margin-left: 4px; }
@media (max-width: 767px) { ul.steps.am24-steps__bar.mobile > li { display: block !important; } }
@media (max-width: 575px) {
    ul.steps.am24-steps__bar > li a, ul.steps.am24-steps__bar > li.current a, ul.steps.am24-steps__bar > li.past a { font-size: 0; padding-top: 0; }
    .am24-steps__count { display: block; }
}
body.add-listing-page #content > h1 { margin: var(--am24-s1) 0 var(--am24-s2); text-align: left; font-size: var(--am24-fs-h2); }

/* wizard */
html.am24-wiz-wait #listing_form { visibility: hidden; } /* until the wizard is built (step_form.tpl + am24-postad.js) */
.am24-hide { display: none !important; }
.am24-wiz-off { display: none !important; }
.am24-wiz__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 var(--am24-s2); }
.am24-wiz__part { font-size: var(--am24-fs-sm); color: var(--am24-muted); }
.am24-wiz__title { font-size: var(--am24-fs-h3); font-weight: 700; color: var(--am24-text); }
.am24-wiz__dots { display: flex; gap: 4px; margin-left: auto; align-self: center; }
.am24-wiz__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--am24-border); }
.am24-wiz__dots i.is-on { background: var(--am24-accent); }
body.am24-wiz-on .am24-quality { position: static; }
body.am24-wiz-on #listing_form .fieldset > header { display: none; }
body.am24-wiz-on #listing_form .fieldset { padding-top: var(--am24-s3); }
body.am24-wiz-on #listing_form .fieldset + .fieldset:not(.am24-wiz-off) { margin-top: var(--am24-s2); }
/* labels on top, one column, P4H-like */
body.am24-wiz-on #listing_form .submit-cell { display: block; margin: 0 0 var(--am24-s3); }
body.am24-wiz-on #listing_form .submit-cell > .name { float: none; width: auto; max-width: none; padding: 0 0 6px; text-align: left; font-weight: 600; font-size: 15px; color: var(--am24-text); }
body.am24-wiz-on #listing_form .submit-cell > .field { float: none; width: 100%; max-width: none; margin: 0; padding: 0; }
body.am24-wiz-on #listing_form .submit-cell input[type="text"], body.am24-wiz-on #listing_form .submit-cell select, body.am24-wiz-on #listing_form .submit-cell textarea { width: 100% !important; max-width: 100%; min-height: 48px; font-size: 16px; }
body.am24-wiz-on #listing_form .submit-cell .wauto { width: 100% !important; }
.am24-cell-err input, .am24-cell-err select, .am24-cell-err textarea { border-color: var(--am24-danger) !important; }
.am24-err { margin: 6px 0 0; color: var(--am24-danger); font-size: var(--am24-fs-sm); }
/* sticky bottom bar: Back (text) + Next (button) */
/* same width and edges as the cards above it on every step (form, photos, check) */
.am24-wiz__bar { position: sticky; bottom: 0; z-index: 20; margin: var(--am24-s3) 0 0; padding: 12px var(--am24-s3); background: var(--am24-surface); border: 1px solid var(--am24-border); border-radius: var(--am24-radius); box-shadow: 0 -6px 18px rgba(16, 24, 16, .06); }
.am24-wiz__barin { display: flex; align-items: center; justify-content: space-between; gap: var(--am24-s2); }
/* photo step: Flynax's .form-buttons wrapper (its JS finds the submit there) */
.form-buttons.am24-photo__btns { padding: 0; text-align: left; }
.form-buttons .am24-wiz__bar a.am24-wiz__back { padding: 10px 4px; }
.form-buttons .am24-wiz__bar a.am24-wiz__back:before { content: none; }
.form-buttons .am24-wiz__bar input.am24-wiz__next { width: auto; font-size: 16px; font-weight: 700; }
.am24-wiz__back, .am24-wiz__back:link, .am24-wiz__back:visited { flex: 0 0 auto; white-space: nowrap; color: var(--am24-accent); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.am24-wiz__back:hover { text-decoration: underline; }
.am24-wiz__next { flex: 0 0 auto; width: auto; min-width: 180px; min-height: var(--am24-tap); padding: 0 var(--am24-s3); border: 0; border-radius: var(--am24-radius-pill); background: var(--am24-accent); color: #fff; font: 700 16px var(--am24-font); cursor: pointer; }
.am24-wiz__next:hover { background: var(--am24-accent-hover); }
@media (max-width: 575px) { .am24-wiz__next { flex: 1 1 auto; min-width: 0; } }
/* price: "AED" sits in front of the number (P4H "£ Price"); phone: full width */
body.am24-wiz-on #listing_form .combo-field { display: flex; align-items: center; gap: 10px; }
body.am24-wiz-on #listing_form .combo-field > span { order: -1; flex: 0 0 auto; font-weight: 600; color: var(--am24-muted); }
body.am24-wiz-on #listing_form .combo-field input.price-full { flex: 1 1 auto; width: auto !important; min-width: 0; }
body.am24-wiz-on #listing_form .field.phone > div, body.am24-wiz-on #listing_form .field.phone .iti { width: 100%; }
body.am24-wiz-on #listing_form .field.phone .iti input.phone-field { width: 100% !important; min-height: 48px; }
body.am24-wiz-on #listing_form .fieldset { padding-bottom: var(--am24-s3) !important; }
body.am24-wiz-on #listing_form .fieldset > .body { overflow: visible; }
/* phones: the site's bottom app bar (.mb-menu, 56px, < 768) would cover the wizard bar */
@media (max-width: 767px) {
    .am24-wiz__bar { position: fixed; left: 0; right: 0; bottom: 56px; margin: 0; padding: 12px var(--am24-gutter); border-width: 1px 0 0; border-radius: 0; }
    body.am24-wiz-on #listing_form, .am24-photo__btns { padding-bottom: 88px !important; }
}

/* Seller privacy switch (My profile, am24Theme 1.6.0) */
#am24-privacy [hidden] { display: none; }
#am24-privacy .am24-switch { margin-bottom: var(--am24-s1); }
#am24-privacy .am24-priv-msg { color: var(--am24-accent); font-weight: 600; }
