/* Forgotten Tools Core — uses the theme's colours when available. */
:root {
	--ftc-ink: var(--ft-ink, #272320);
	--ftc-line: var(--ft-line, #e6dfd1);
	--ftc-muted: var(--ft-muted, #6e675d);
	--ftc-accent: var(--ft-yellow, #f5b800);
	--ftc-accent-hover: var(--ft-yellow-hover, #e2a900);
	--ftc-gold: var(--ft-gold, #8a6a00);
	--ftc-sand: var(--ft-sand, #f3ecdc);
	--ftc-photo: var(--ft-photo, #e4dccb);
	--ftc-green: var(--ft-green, #2f8a57);
	--ftc-red: #b3261e;
	--ftc-display: var(--ft-display, inherit);
	--ftc-radius: var(--ft-radius, 4px);
}

.ftc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ftc-muted { color: var(--ftc-muted); font-size: 14px; }

/* Buttons */
.ftc-button,
.ftc-panel--mark > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 3px;
	background: var(--ftc-accent);
	color: var(--ftc-ink) !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.ftc-button:hover,
.ftc-panel--mark > summary:hover { background: var(--ftc-accent-hover); }
.ftc-link-button { padding: 0; border: 0; background: none; color: var(--ftc-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Notices */
.ftc-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--ftc-radius); border-left: 4px solid var(--ftc-green); background: #fff; font-size: 15px; }
.ftc-notice--error { border-left-color: var(--ftc-red); }

/* SOLD badge */
.ftc-sold-badge {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	background: var(--ftc-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.3;
}
.ftc-sold-badge--sm { padding: 2px 8px; font-size: 11px; }

/* Listing sidebar panels */
.ftc-panel { margin-bottom: 20px; }
.ftc-panel--sold { text-align: center; }
.ftc-panel--sold .ftc-sold-badge { font-size: 14px; padding: 6px 18px; }
.ftc-panel__price { margin: 10px 0 4px; font-family: var(--ftc-display); font-size: 40px; font-weight: 700; line-height: 1; }
.ftc-panel__meta { margin: 4px 0 0; font-size: 14px; color: var(--ftc-muted); }
.ftc-panel__meta a { color: var(--ftc-gold); font-weight: 600; }
.ftc-undo { margin-top: 14px; }

.ftc-panel--mark > summary { width: 100%; list-style: none; }
.ftc-panel--mark > summary::-webkit-details-marker { display: none; }
.ftc-panel--mark[open] > summary { margin-bottom: 16px; background: var(--ftc-ink); color: #fff !important; }
.ftc-form__intro { margin: 0 0 14px; font-size: 14px; color: var(--ftc-muted); }
.ftc-form__label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ftc-form__label small { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ftc-muted); }
.ftc-form__help { margin: 6px 0 0; font-size: 13px; color: var(--ftc-muted); }
.ftc-form input,
.ftc-form select,
.ftc-feedback-form textarea,
.ftc-reply-form textarea { width: 100%; }
.ftc-money-input { position: relative; }
.ftc-money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ftc-muted); pointer-events: none; }
.ftc-money-input input { padding-left: 28px !important; }
.ftc-button--submit { width: 100%; margin-top: 18px; }

/* My Listings */
.ftc-mark-link { margin-right: 12px; font-size: 14px; font-weight: 600; color: var(--ftc-gold); white-space: nowrap; }

/* Ratings */
.ftc-stars { color: var(--ftc-accent); letter-spacing: 1px; white-space: nowrap; }
.ftc-stars__off { color: var(--ftc-line); }
.ftc-rating { font-size: 13px; white-space: nowrap; }
.ftc-rating__star { color: var(--ftc-gold); }
.ftc-rating strong { color: var(--ftc-gold); }
.ftc-rating__sales { color: var(--ftc-muted); }
.ftc-rating--new { color: var(--ftc-gold); font-weight: 600; }
.ftc-card-rating { display: inline-flex; align-items: center; }
.ftc-tag { display: inline-block; padding: 2px 10px; border: 1.5px solid var(--ftc-accent); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.ftc-vendor-rating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 8px 0 0; font-size: 14px; }
.ftc-vendor-rating strong { color: var(--ftc-gold); }

.ftc-rating-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ftc-line); text-align: center; }
.ftc-rating-summary p { margin: 4px 0; }
.ftc-rating-summary__score { font-family: var(--ftc-display); font-size: 44px; font-weight: 700; line-height: 1; }
.ftc-rating-summary .ftc-stars { font-size: 20px; }
.ftc-rating-summary a { color: inherit; }

/* Seller profile sections */
.ftc-tabs { display: flex; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--ftc-line); }
.ftc-tabs__item { padding: 10px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 600; text-decoration: none; color: var(--ftc-muted) !important; }
.ftc-tabs__item.is-active,
.ftc-tabs__item:hover { color: var(--ftc-ink) !important; border-bottom-color: var(--ftc-accent); }
.ftc-tabs__item span { font-weight: 400; }
.ftc-section { margin-top: 48px; scroll-margin-top: 96px; }
.ftc-section-title { margin: 0 0 20px; scroll-margin-top: 96px; }
.ftc-empty { padding: 24px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); color: var(--ftc-muted); }
.ftc-empty p { margin: 0 0 8px; }
.ftc-empty p:last-child { margin: 0; }

.ftc-sold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.ftc-sold-card { background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); overflow: hidden; }
.ftc-sold-card__link { display: block; height: 100%; text-decoration: none; color: inherit; }
.ftc-sold-card__image { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ftc-photo); }
.ftc-sold-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.ftc-sold-card__image .ftc-sold-badge { position: absolute; top: 12px; left: 0; }
.ftc-sold-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.ftc-sold-card__cat { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ftc-muted); }
.ftc-sold-card__title { font-family: var(--ftc-display); font-size: 20px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.ftc-sold-card__price { margin-top: 6px; font-family: var(--ftc-display); font-size: 24px; font-weight: 700; }

.ftc-feedback-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.ftc-feedback-head__score { font-family: var(--ftc-display); font-size: 40px; font-weight: 700; line-height: 1; }
.ftc-feedback-head .ftc-stars { font-size: 20px; }
.ftc-feedback-list { list-style: none; margin: 0; padding: 0; }
.ftc-feedback { padding: 20px; margin-bottom: 12px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); }
.ftc-feedback__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ftc-feedback__who { font-weight: 600; }
.ftc-feedback__comment { margin: 10px 0 6px; }
.ftc-feedback__item { margin: 0; }
.ftc-feedback__reply { margin-top: 12px; padding: 12px 16px; background: var(--ftc-sand); border-radius: var(--ftc-radius); font-size: 15px; }
.ftc-feedback__reply p { margin: 4px 0 0; }
.ftc-reply-form { margin-top: 12px; }
.ftc-reply-form summary { color: var(--ftc-gold); font-weight: 600; cursor: pointer; }
.ftc-reply-form form { margin-top: 10px; }

/* Leave feedback page */
.ftc-feedback-form { max-width: 560px; padding: 32px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); }
.ftc-feedback-form > p { margin: 0; }
.ftc-feedback-form__item { margin: 4px 0; }
.ftc-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 20px 0 6px; padding: 0; border: 0; }
.ftc-star-input legend { float: left; width: 100%; margin-bottom: 8px; font-weight: 600; }
.ftc-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ftc-star-input label { font-size: 38px; line-height: 1; color: var(--ftc-line); cursor: pointer; transition: color .1s; }
.ftc-star-input label:hover,
.ftc-star-input label:hover ~ label,
.ftc-star-input input:checked ~ label { color: var(--ftc-accent); }
.ftc-star-input input:focus-visible + label { outline: 3px solid var(--ftc-accent); outline-offset: 2px; }
.ftc-feedback-form .ftc-button { margin-top: 18px; }

.ftc-pending__list { list-style: none; margin: 0; padding: 0; }
.ftc-pending__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 10px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); }

/* Price guide */
.ftc-guide__search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; margin-bottom: 24px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); }
.ftc-guide__field { display: flex; flex-direction: column; flex: 1 1 160px; }
.ftc-guide__field--q { flex: 2 1 260px; }
.ftc-guide__field label { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ftc-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.ftc-stats div { padding: 16px; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); text-align: center; }
.ftc-stats span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ftc-muted); }
.ftc-stats strong { display: block; margin-top: 4px; font-family: var(--ftc-display); font-size: 30px; line-height: 1.1; }
.ftc-guide__note { margin: 0 0 20px; }
.ftc-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ftc-line); border-radius: var(--ftc-radius); }
.ftc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ftc-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ftc-muted); border-bottom: 1px solid var(--ftc-line); white-space: nowrap; }
.ftc-table td { padding: 12px 14px; border-bottom: 1px solid var(--ftc-line); vertical-align: top; }
.ftc-table tr:last-child td { border-bottom: 0; }
.ftc-table a { color: inherit; font-weight: 600; }
.ftc-table__cat { display: block; font-size: 12px; color: var(--ftc-muted); }
.ftc-num { text-align: right !important; white-space: nowrap; }
.ftc-pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.ftc-pager a,
.ftc-pager span { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--ftc-line); border-radius: 3px; background: #fff; text-decoration: none; font-weight: 600; }
.ftc-pager .is-current { background: var(--ftc-ink); border-color: var(--ftc-ink); color: #fff; }

@media (max-width: 760px) {
	.ftc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftc-stats div:first-child { grid-column: 1 / -1; }
	.ftc-table thead { display: none; }
	.ftc-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--ftc-line); }
	.ftc-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
	.ftc-table td::before { content: attr(data-label); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ftc-muted); text-align: left; }
	.ftc-table td:first-child { display: block; text-align: left; margin-bottom: 6px; }
	.ftc-table td:first-child::before { display: none; }
	.ftc-pending__list li { flex-direction: column; align-items: flex-start; }
	.ftc-feedback-form { padding: 20px; }
}

/* Sold listing page: no contact buttons */
.ftc-listing-sold .hp-listing__actions--primary,
.ftc-listing-sold .hp-listing__attributes--primary { display: none !important; }

