/* Forgotten Tools — Trader membership (profile header, directory, settings, badges, map). */

body { --ftc-trader: #b3261e; }

.ftc-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ft-gold, #8a6a00); }
.ftc-trader-box--dark .ftc-eyebrow, .ftc-trader-hero .ftc-eyebrow { color: var(--ft-yellow, #f5b800); }
.ftc-hint { margin: 6px 0 0; font-size: 13px; color: var(--ft-muted, #6e675d); }
.ftc-trader-label { margin: 18px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ft-muted, #6e675d); }

/* Buttons */
body.ft .ftc-trader-btn,
.ftc-trader-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1.5px solid var(--ft-yellow, #f5b800); border-radius: 3px; background: var(--ft-yellow, #f5b800); color: var(--ft-ink, #272320); font: 600 15px/1.2 var(--ft-body, sans-serif); text-decoration: none; cursor: pointer; }
body.ft .ftc-trader-btn:hover { background: var(--ft-yellow-hover, #e2a900); border-color: var(--ft-yellow-hover, #e2a900); color: var(--ft-ink, #272320); }
body.ft .ftc-trader-btn--ghost { background: transparent; color: #fff; }
body.ft .ftc-trader-btn--ghost:hover { background: var(--ft-yellow, #f5b800); color: var(--ft-ink, #272320); }
body.ft .ftc-trader-btn--outline { background: #fff; border-color: var(--ft-ink, #272320); color: var(--ft-ink, #272320); }
body.ft .ftc-trader-btn--outline:hover { background: var(--ft-ink, #272320); border-color: var(--ft-ink, #272320); color: #fff; }
.ftc-trader-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }

/* Logo / initials */
.ftc-trader-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--ft-sand, #f3ecdc); color: var(--ft-ink, #272320); }
.ftc-trader-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftc-trader-logo__initials { font: 700 1em/1 var(--ft-display, sans-serif); }
.ftc-trader-logo--lg { width: 128px; height: 128px; font-size: 44px; border: 4px solid var(--ftc-trader); }
.ftc-trader-logo--md { width: 64px; height: 64px; font-size: 24px; border: 3px solid var(--ftc-trader); }
.ftc-trader-logo--sm { width: 44px; height: 44px; font-size: 17px; border: 2px solid var(--ftc-trader); }

/* Tags and badges */
.ftc-trader-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ftc-trader); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; }
.ftc-trader-tag--outline { background: transparent; border: 1.5px solid var(--ft-yellow, #f5b800); color: var(--ft-yellow, #f5b800); padding: 4px 12px; }
.ftc-trader-tag--sm { padding: 3px 9px; font-size: 10.5px; gap: 5px; }
.ftc-trader-tag--sm svg { width: 12px; height: 12px; }

body.ft a.ftc-trader-badge,
a.ftc-trader-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 3px; background: var(--ftc-trader); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; text-decoration: none; }
body.ft a.ftc-trader-badge:hover { color: #fff; filter: brightness(1.1); }
.hp-listing__header { position: relative; }
.ftc-trader-badge--card { position: absolute; left: 10px; bottom: 10px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ftc-trader-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; font-size: 15px; }

/* Featured ribbon */
.ftc-trader-ribbon { position: absolute; top: 44px; right: -70px; z-index: 2; width: 290px; padding: 9px 0; transform: rotate(45deg); background: var(--ft-yellow, #f5b800); color: var(--ft-ink, #272320); text-align: center; font: 700 17px/1.2 var(--ft-display, sans-serif); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 3px 10px rgba(0,0,0,.35); pointer-events: none; }
.ftc-trader-ribbon--sm { top: 18px; right: -40px; width: 150px; padding: 5px 0; font-size: 12.5px; }

/* Trader page header */
.ftc-trader-hero { position: relative; overflow: hidden; background: var(--ft-ink, #272320); color: var(--ft-on-dark, #e9e4da); }
.ftc-trader-hero__inner { max-width: var(--ft-container, 1140px); margin: 0 auto; padding: 44px 24px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.ftc-trader-hero__main { flex: 999 1 420px; min-width: 0; }
.ftc-trader-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
body.ft .ftc-trader-hero__name { margin: 0 0 6px; font: 700 clamp(38px, 6vw, 56px)/1 var(--ft-display, sans-serif); text-transform: uppercase; color: #fff; }
.ftc-trader-hero__tagline { margin: 0 0 14px; font-size: 18px; color: var(--ft-on-dark, #e9e4da); }
.ftc-trader-hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: #cfc7b8; }
.ftc-trader-hero__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ftc-trader-hero__meta svg { color: var(--ft-yellow, #f5b800); }
.ftc-trader-hero__rating { color: var(--ft-yellow, #f5b800); font-weight: 600; }
.ftc-trader-hero__rating .ftc-stars__off { opacity: .35; }
.ftc-trader-hero__actions { flex: 1 1 220px; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.ftc-trader-hero.is-featured .ftc-trader-hero__actions { margin-right: 60px; }
@media (max-width: 700px) {
	.ftc-trader-hero__inner { padding-top: 64px; }
	.ftc-trader-hero__actions { max-width: none; }
	.ftc-trader-hero.is-featured .ftc-trader-hero__actions { margin-right: 0; }
	.ftc-trader-logo--lg { width: 96px; height: 96px; font-size: 34px; }
}

/* Trader page: the vendor box in the sidebar is replaced by the header. */
.ftc-is-trader-page .hp-vendor__actions--primary .hp-vendor__action--message { display: none; }
.ftc-is-trader-page .hp-vendor__actions--primary:not(:has(> :not(.hp-modal):not(.hp-vendor__action--message))) { display: none; }

/* Cards */
.ftc-trader-card { margin: 0 0 28px; padding: 28px 30px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-radius: var(--ft-radius, 4px); }
.ftc-trader-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.ftc-trader-card__head .ftc-section-title { margin: 0; }
.ftc-trader-about p { margin: 0 0 12px; color: #4b453e; }
@media (max-width: 600px) { .ftc-trader-card { padding: 22px 18px; } }

.ftc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.ft .ftc-chip,
.ftc-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px; border-radius: 999px; background: var(--ft-sand, #f3ecdc); color: var(--ft-ink, #272320); font-size: 14px; font-weight: 600; text-decoration: none; }
body.ft a.ftc-chip:hover { background: #eadfc4; color: var(--ft-ink, #272320); }
body.ft a.ftc-chip.is-active { background: var(--ft-ink, #272320); color: #fff; }
.ftc-chips--sm .ftc-chip { min-height: 26px; padding: 3px 10px; font-size: 12.5px; }

.ftc-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ftc-gallery img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 4px; display: block; }
.ftc-gallery__link { display: block; }
.ftc-gallery__link:hover img { opacity: .9; }
.ftc-gallery--edit { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 18px; }
.ftc-gallery__controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 13px; }
body.ft .ftc-gallery__controls input[type=number], .ftc-gallery__controls input[type=number] { width: 64px; min-width: 64px; min-height: 36px; padding: 4px 4px 4px 10px; font-size: 15px; text-align: left; }

/* Sidebar */
.ftc-trader-side { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.ftc-trader-box { padding: 22px 24px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-radius: var(--ft-radius, 4px); }
.ftc-trader-box--sand { background: var(--ft-sand, #f3ecdc); border-color: var(--ft-sand, #f3ecdc); }
.ftc-trader-box--dark { background: var(--ft-ink, #272320); border-color: var(--ft-ink, #272320); color: var(--ft-on-dark, #e9e4da); border-radius: var(--ft-radius, 4px); }
body.ft .ftc-trader-box__title { margin: 0 0 14px; font: 700 22px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-trader-box--sand .ftc-muted { margin: -6px 0 14px; }
.ftc-trader-box__big { margin: 0 0 14px; font: 700 24px/1.05 var(--ft-display, sans-serif); text-transform: uppercase; color: #fff; }
.ftc-trader-box__place { margin: 12px 0 0; font-weight: 600; }
.ftc-trader-map { height: 190px; border-radius: 4px; overflow: hidden; background: #e8eedf; }
.ftc-trader-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.ft .ftc-trader-links a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ft-gold, #8a6a00); text-decoration: none; word-break: break-word; }
body.ft .ftc-trader-links a:hover { color: var(--ft-ink, #272320); }
.ftc-trader-links svg { flex: none; }
.ftc-trader-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ft-line, #e6dfd1); text-align: center; }
.ftc-trader-links:empty + .ftc-trader-stats, .ftc-trader-box__title + .ftc-trader-stats { margin-top: 0; padding-top: 0; border-top: 0; }
.ftc-trader-stats strong { display: block; font: 700 30px/1 var(--ft-display, sans-serif); }
.ftc-trader-stats span { display: block; margin-top: 2px; font-size: 13px; color: var(--ft-muted, #6e675d); }

/* Map card + layer toggle */
.ftc-map-card { display: flex; align-items: center; gap: 10px; min-width: 190px; font-family: var(--ft-body, sans-serif); }
.ftc-map-card__body { display: flex; flex-direction: column; gap: 1px; }
.ftc-map-card__tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ftc-trader); }
.ftc-map-card__name { font-weight: 700; font-size: 15px; color: var(--ft-ink, #272320); }
.ftc-map-card__place { font-size: 13px; color: var(--ft-muted, #6e675d); }

.ftc-map-layers { display: inline-flex; flex-wrap: wrap; gap: 0; margin: 0 0 12px; border: 1.5px solid var(--ft-ink, #272320); border-radius: 3px; overflow: hidden; }
.ftc-map-layers__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 16px; border: 0; border-right: 1.5px solid var(--ft-ink, #272320); background: #fff; color: var(--ft-ink, #272320); font: 600 14px/1 var(--ft-body, sans-serif); cursor: pointer; }
.ftc-map-layers__btn:last-child { border-right: 0; }
.ftc-map-layers__btn.is-active { background: var(--ft-ink, #272320); color: #fff; }
.ftc-map-layers__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ftc-trader); box-shadow: 0 0 0 2px #fff; }

/* Directory */
.ftc-directory__search { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; margin: 0 0 18px; padding: 22px 24px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-radius: var(--ft-radius, 4px); }
.ftc-directory__search .ftc-field { margin: 0; }
.ftc-directory__go { margin: 0; }
.ftc-directory__go .ftc-trader-btn { width: 100%; }
.ftc-directory__cats { margin: 0 0 22px; }
.ftc-directory__map { height: 360px; margin: 0 0 22px; border-radius: var(--ft-radius, 4px); overflow: hidden; background: #e8eedf; }
.ftc-directory__count { margin: 0 0 12px; }
.ftc-directory__grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ftc-trader-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-radius: var(--ft-radius, 4px); }
.ftc-trader-tile.is-featured { border-color: var(--ft-yellow, #f5b800); box-shadow: 0 0 0 1px var(--ft-yellow, #f5b800); }
.ftc-trader-tile__head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.ftc-trader-tile__head .ftc-muted { margin: 2px 0 0; }
body.ft .ftc-trader-tile__name { margin: 6px 0 0; font: 700 24px/1.05 var(--ft-display, sans-serif); text-transform: uppercase; }
body.ft .ftc-trader-tile__name a { color: var(--ft-ink, #272320); text-decoration: none; }
body.ft .ftc-trader-tile__name a::after { content: ""; position: absolute; inset: 0; }
.ftc-trader-tile__tagline { margin: 0; color: #4b453e; }
.ftc-trader-tile__foot { margin: auto 0 0; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--ft-line, #e6dfd1); font-size: 14px; }
body.ft .ftc-trader-tile__more { font-weight: 600; color: var(--ft-gold, #8a6a00); text-decoration: none; }
.ftc-directory__join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; }
.ftc-directory__join .ftc-trader-box__big { margin: 0; }

/* Become a Trader */
.ftc-become__intro { max-width: 760px; margin: 0 0 32px; }
body.ft .ftc-become__title { margin: 0 0 14px; font: 700 clamp(30px, 4.5vw, 44px)/1.02 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-become__lead { font-size: 19px; color: #4b453e; }
.ftc-become__cta { margin-top: 20px; }
.ftc-become__grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ftc-become__grid .ftc-trader-card { margin: 0; border-top: 4px solid var(--ftc-trader); }
body.ft .ftc-become__grid h3 { margin: 0 0 8px; font: 700 22px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-become__grid p { margin: 0; color: #4b453e; }
.ftc-become__price { margin: 0 0 32px; padding: 34px 36px; }
.ftc-become__price p { color: var(--ft-on-dark, #e9e4da); max-width: 640px; }
.ftc-become__amount { margin: 4px 0 8px; font: 700 64px/1 var(--ft-display, sans-serif); color: #fff !important; }
.ftc-become__amount span { font-size: 22px; color: var(--ft-on-dark, #e9e4da); text-transform: uppercase; }
.ftc-become__includes { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ftc-become__includes li { position: relative; padding-left: 26px; }
.ftc-become__includes li::before { content: "✓"; position: absolute; left: 0; color: var(--ft-yellow, #f5b800); font-weight: 700; }
body.ft .ftc-become__small h3 { margin: 0 0 10px; font: 700 22px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-become__small ul { margin: 0; padding-left: 20px; color: #4b453e; }
.ftc-become__small li { margin-bottom: 6px; }

/* Settings form */
.ftc-trader-form { max-width: 860px; }
.ftc-trader-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 22px 26px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-left: 5px solid var(--ft-green, #2f8a57); border-radius: var(--ft-radius, 4px); }
.ftc-trader-status.is-due { border-left-color: var(--ft-yellow, #f5b800); }
.ftc-trader-status.is-expired { border-left-color: var(--ftc-trader); }
.ftc-trader-status__title { margin: 0 0 4px; font: 700 22px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-trader-status .ftc-muted { margin: 0; }
.ftc-trader-status__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ftc-trader-fields fieldset.ftc-trader-card { min-width: 0; }
.ftc-trader-fields legend.ftc-section-title { float: left; width: 100%; margin: 0 0 14px; padding: 0; font: 700 26px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-trader-fields legend + * { clear: both; }
.ftc-field { margin: 0 0 18px; }
fieldset.ftc-field { border: 0; padding: 0; min-width: 0; }
.ftc-field__label { display: block; margin: 0 0 6px; font-weight: 600; }
.ftc-field input[type=text], .ftc-field input[type=url], .ftc-field input[type=search], .ftc-field textarea, .ftc-field select { width: 100%; box-sizing: border-box; }
.ftc-field__logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ftc-check { display: inline-flex; align-items: center; gap: 8px; margin: 6px 16px 0 0; cursor: pointer; }
.ftc-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ftc-check--chip { margin: 0; padding: 7px 14px; border: 1.5px solid var(--ft-line, #e6dfd1); border-radius: 999px; background: #fff; font-weight: 600; }
.ftc-check--chip:has(input:checked) { border-color: var(--ft-ink, #272320); background: var(--ft-sand, #f3ecdc); }

/* Trader page: the header replaces the seller summary box and the "Listings by" page title. */
.ftc-is-trader-page .hp-vendor__summary,
.ftc-is-trader-page .hp-page__title { display: none; }

/* Phones: on a Trader page, show About / shop photos / listings before the sidebar. */
@media (max-width: 767px) {
	.ftc-is-trader-page .hp-page .hp-row { display: flex; flex-direction: column; }
	.ftc-is-trader-page .hp-page__content { order: -1; }
}
.ftc-tabs { overflow-x: auto; scrollbar-width: none; }
.ftc-tabs__item { white-space: nowrap; flex: none; }

/* ---------- Collector alerts ---------- */
.ftc-collector { max-width: 860px; }
.ftc-collector__pre { margin: 14px 0 0; padding: 10px 14px; background: var(--ft-sand, #f3ecdc); border-radius: 4px; font-weight: 600; }
.ftc-alert-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px 14px; align-items: end; }
.ftc-alert-add .ftc-field { margin: 0; }
.ftc-alert-add__go { margin: 0; }
@media (max-width: 640px) { .ftc-alert-add { grid-template-columns: 1fr; } .ftc-alert-add__go .ftc-trader-btn { width: 100%; } }
.ftc-alert-list { list-style: none; margin: 0; padding: 0; }
.ftc-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--ft-line, #e6dfd1); }
.ftc-alert:first-child { border-top: 0; padding-top: 0; }
.ftc-alert__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ftc-alert__q { font: 700 21px/1.1 var(--ft-display, sans-serif); text-transform: uppercase; }
.ftc-alert.is-paused .ftc-alert__q { color: var(--ft-muted, #6e675d); text-decoration: line-through; text-decoration-thickness: 1px; }
.ftc-alert__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ftc-alert__actions form { margin: 0; }
body.ft .ftc-alert__link { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--ft-gold, #8a6a00); }
body.ft button.ftc-alert__btn[type="submit"], .ftc-alert__btn { min-height: 36px; padding: 5px 12px; border: 1.5px solid var(--ft-ink, #272320); border-radius: 3px; background: #fff; color: var(--ft-ink, #272320); font: 600 13px/1 var(--ft-body, sans-serif); cursor: pointer; }
body.ft button.ftc-alert__btn[type="submit"]:hover { background: var(--ft-ink, #272320); color: #fff; }
body.ft button.ftc-alert__btn--delete[type="submit"] { border-color: #b3261e; color: #b3261e; }
body.ft button.ftc-alert__btn--delete[type="submit"]:hover { background: #b3261e; color: #fff; }
.ftc-recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.ft .ftc-recent a { display: flex; flex-direction: column; gap: 6px; color: var(--ft-ink, #272320); font-weight: 600; font-size: 14px; line-height: 1.25; text-decoration: none; }
.ftc-recent img, .ftc-recent__noimg { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 4px; background: var(--ft-photo, #e4dccb); display: block; }

.ftc-alert-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; padding: 14px 18px; background: #fff; border: 1px solid var(--ft-line, #e6dfd1); border-left: 4px solid var(--ft-yellow, #f5b800); border-radius: var(--ft-radius, 4px); }
.ftc-alert-cta svg { flex: none; color: var(--ft-gold, #8a6a00); }
.ftc-alert-cta p { flex: 1 1 260px; margin: 0; }
body.ft .ftc-alert-cta .ftc-trader-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.ftc-collector .ftc-become__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
