/* Copy Animation */

.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #ff7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1e2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: #d1d1d1;
  border-radius: 5px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}

.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: "";
  font-family: "Line Awesome Free";
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #cccccf59;
  --hover-border-color: hsl(var(--base));
  background-color: #fff;
  border-radius: 5px;
  height: 100%;
}

.payment-system-list.is-scrollable {
  max-height: min(388px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--base));
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid var(--hover-border-color);
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width));
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;
}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
    width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}

.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.deposit-info:not(:last-child) {
  margin-bottom: 16px;
}

.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
}

.deposit-info__input {
  max-width: 35%;
  text-align: right;
  width: 100%;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group:has(.form--control[readonly]) {
  border: 1px solid hsl(var(--black)/0.1) !important;
  background: transparent !important;
}

.deposit-info__input-group.input-group .form--control[readonly] {
  background-color: transparent !important;
}

.deposit-info__input-group-text {
  align-self: center;
  padding-left: 5px;
}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 14px;
}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.total-amount {
  border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
  background-color: hsl(var(--base));
}

.payment-item__btn-text {
  color: hsl(var(--white));
}

.payment-item__btn__icon {
  color: hsl(var(--white));
}

.payment-item:hover+.payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

/* ===== GENSETZ generator listings ===== */
.generator-item__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: hsl(var(--black) / 5%);
}

.generator-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generator-item__kva,
.generator-item__flag {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.generator-item__kva {
  left: 12px;
  background: hsl(var(--base));
  color: hsl(var(--white));
}

.generator-item__flag {
  right: 12px;
  background: #ff9f43;
  color: #fff;
}

.generator-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.generator-item .car-item-info-item {
  flex: 1 1 0;
  text-align: center;
}

.generator-item__condition {
  font-size: 13px !important;
  line-height: 1.3;
}

.generator-item .car-item-dealer {
  align-items: center;
  gap: 8px;
}

.generator-item .car-item-dealer .name {
  font-size: 13px;
}

.capacity-tile {
  height: 100%;
}

.capacity-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: hsl(var(--base) / 12%);
  color: hsl(var(--base));
  font-size: 28px;
}

.capacity-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-bottom: 10px;
}

.capacity-tile__logo img {
  max-height: 100%;
  max-width: min(120px, 100%);
  object-fit: contain;
}

.capacity-tile .category-item-name {
  font-size: 1rem;
}

.banner-category-item .thumb i {
  font-size: 40px;
  line-height: 60px;
  color: hsl(var(--base));
}

.seo-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.seo-breadcrumbs__item + .seo-breadcrumbs__item::before {
  content: "/";
  margin-right: 4px;
  color: hsl(var(--body-color) / 0.6);
}

.seo-breadcrumbs__item a {
  color: hsl(var(--base));
}

.seo-breadcrumbs__item span {
  color: hsl(var(--body-color));
}

/* ---------- Buyer: shortlist heart ---------- */
.shortlist-btn:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid hsl(var(--black) / 10%);
  background: hsl(var(--white));
  color: hsl(var(--heading-color));
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.shortlist-btn:not(.btn):hover {
  color: #ea5455;
  border-color: #ea5455;
}

.shortlist-btn.is-active {
  color: #ea5455;
}

.shortlist-btn:not(.btn):active {
  transform: scale(0.94);
}

.shortlist-btn:disabled {
  opacity: 0.7;
}

.shortlist-btn--card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 16px;
  box-shadow: 0 2px 8px hsl(var(--black) / 15%);
}

.generator-item .generator-item__flag {
  right: 56px;
  top: 16px;
}

.shortlist-btn--wide {
  width: 100%;
  padding: 10px 16px;
  font-weight: 600;
}

/* ---------- Buyer: enquiry CTA & modal ---------- */
.enquiry-cta .btn--lg {
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.enquiry-cta__note {
  font-size: 13px;
  color: hsl(var(--body-color));
  text-align: center;
}

.enquiry-cta__reserved {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 159, 67, 0.12);
  color: #b86a1d;
  font-size: 14px;
  font-weight: 500;
}

.enquiry-modal__listing {
  font-size: 13px;
  color: hsl(var(--body-color));
}

.enquiry-modal .input-group-text {
  background: hsl(var(--black) / 4%);
  border-color: hsl(var(--black) / 10%);
  font-weight: 600;
}

.enquiry-error {
  min-height: 0;
  margin-top: 4px;
  font-size: 13px;
  color: #ea5455;
}

.enquiry-error:empty {
  display: none;
}

.enquiry-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: hsl(var(--base));
}

.enquiry-modal__privacy {
  font-size: 13px;
  color: hsl(var(--body-color));
}

.enquiry-success {
  padding: 16px 0;
}

.enquiry-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(40, 199, 111, 0.15);
  color: #28c76f;
  font-size: 34px;
}

.enquiry-success__tip {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: hsl(var(--base) / 8%);
  font-size: 14px;
}

.enquiry-success__tip i {
  font-size: 20px;
  color: hsl(var(--base));
}

.enquiry-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: hsl(var(--white));
  box-shadow: 0 -4px 16px hsl(var(--black) / 10%);
}

.enquiry-sticky-bar__price {
  font-weight: 700;
  color: hsl(var(--heading-color));
}

/* ---------- Post requirement ---------- */
.requirement-card {
  padding: 32px;
  border-radius: 16px;
  background: hsl(var(--white));
  box-shadow: hsl(var(--black) / 10%) 0 4px 15px;
}

.requirement-card__heading {
  margin: 8px 0 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--body-color));
}

.requirement-steps {
  padding-left: 1.2rem;
  list-style: decimal;
}

.requirement-steps li {
  margin-bottom: 8px;
}

@media (max-width: 575px) {
  .requirement-card {
    padding: 20px 16px;
  }
}

/* ---------- Buyer portal ---------- */
.buyer-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buyer-status-tabs__count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: hsl(var(--black) / 8%);
  font-size: 12px;
}

.buyer-search {
  max-width: 320px;
  width: 100%;
}

.buyer-listing-snapshot {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.buyer-listing-snapshot__thumb img {
  width: 140px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.buyer-enquiry-message {
  white-space: pre-line;
}

.buyer-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-timeline__item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  color: hsl(var(--body-color) / 0.7);
}

.buyer-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: hsl(var(--black) / 10%);
}

.buyer-timeline__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--black) / 6%);
}

.buyer-timeline__item.is-done {
  color: hsl(var(--heading-color));
}

.buyer-timeline__item.is-done .buyer-timeline__icon {
  background: hsl(var(--base));
  color: hsl(var(--white));
}

.buyer-timeline__label {
  font-weight: 600;
}

.buyer-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.buyer-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed hsl(var(--black) / 10%);
  font-size: 14px;
}

.buyer-detail-list li:last-child {
  border-bottom: 0;
}

.buyer-detail-list strong {
  text-align: right;
  word-break: break-word;
}

.shortlist-card--unavailable .generator-item {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.shortlist-card--unavailable .generator-item a {
  pointer-events: none;
}

.shortlist-card__note {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #b86a1d;
}

.sidebar-menu-list__la-icon {
  font-size: 20px;
}

/* Seller plans: plan cards, My Plan, checkout, dashboard widget, pricing page */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px 24px;
  border: 1px solid hsl(var(--black) / 0.1);
  border-radius: 16px;
  background: hsl(var(--white));
  overflow: hidden;
}

.plan-card--recommended {
  border: 2px solid hsl(var(--base));
  box-shadow: 0 12px 32px hsl(var(--base) / 0.12);
}

.plan-card--current {
  background: hsl(var(--base) / 0.04);
}

/* Sits far enough from the corner that the whole word clears the card's clipped edges. */
.plan-card__ribbon {
  position: absolute;
  top: 28px;
  right: -32px;
  width: 140px;
  padding: 4px 0;
  transform: rotate(45deg);
  background: hsl(var(--base));
  color: hsl(var(--white));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.plan-card__name {
  margin-bottom: 4px;
  padding-right: 48px;
}

.plan-card__tagline {
  margin-bottom: 8px;
  font-size: 14px;
  color: hsl(var(--body-color, 0 0% 40%));
}

.plan-card__price {
  margin: 12px 0 16px;
}

.plan-card__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: hsl(var(--heading-color, 0 0% 10%));
}

.plan-card__duration {
  font-size: 14px;
  color: #777;
}

.plan-card__features {
  flex-grow: 1;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.plan-card__features li {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}

.plan-card__features i {
  margin-top: 3px;
  color: hsl(var(--base));
}

.plan-card__carry {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--success, 147 67% 35%));
}

.current-plan__label,
.plan-widget__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.current-plan__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.current-plan__days {
  font-weight: 700;
}

.current-plan__progress {
  height: 8px;
}

.current-plan__progress .progress-bar {
  background: hsl(var(--base));
}

.current-plan__progress .progress-bar.bg--danger {
  background: hsl(var(--danger, 0 72% 51%));
}

.current-plan__stats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.current-plan__stats li,
.checkout-summary__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed hsl(var(--black) / 0.08);
  font-size: 14px;
}

.current-plan__stats li:last-child,
.checkout-summary__list li:last-child {
  border-bottom: 0;
}

.current-plan__stats strong,
.checkout-summary__list strong {
  text-align: right;
}

.checkout-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-summary__total {
  font-size: 16px !important;
}

.checkout-form .payment-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.checkout-unavailable__icon {
  font-size: 48px;
  color: #aaa;
}

.plan-widget__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-widget__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  background: hsl(var(--base) / 0.1);
  color: hsl(var(--base));
}

.plan-widget--ending .plan-widget__icon {
  background: rgba(255, 159, 67, 0.15);
  color: #e08a1e;
}

.plan-widget--expired .plan-widget__icon {
  background: rgba(234, 84, 85, 0.12);
  color: #ea5455;
}

.plan-widget__meta {
  color: #777;
}

.plan-usage-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.plan-usage-line i {
  color: hsl(var(--base));
}

.landing-plan__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.seller-trial-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  padding: 28px 32px;
  border: 1px dashed hsl(var(--base) / 0.5);
  border-radius: 20px;
  background: hsl(var(--base) / 0.04);
}

.seller-trial-box__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 30px;
  background: hsl(var(--base));
  color: hsl(var(--white));
}

.seller-trial-box__content {
  flex-grow: 1;
}

.seller-plan-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seller-plan-faq__item {
  padding: 20px;
  border: 1px solid hsl(var(--black) / 0.08);
  border-radius: 12px;
}

.seller-plan-faq__item h3 {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.seller-plan-faq__item h3 i {
  color: hsl(var(--base));
}

.seller-plan-faq__item p {
  margin-bottom: 0;
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .seller-trial-box {
    flex-direction: column;
    padding: 24px 16px;
    text-align: center;
  }

  .seller-plan-faq {
    grid-template-columns: 1fr;
  }
}

/* Listing detail gallery: reserve each photo's space before it loads so the page does not jump (CLS) */
.details-view .details-view-item {
  aspect-ratio: 1 / 1;
}

.details-view .details-view-item:first-child {
  aspect-ratio: 4 / 3;
}

.details-view .details-view-item img {
  position: absolute;
  inset: 0;
}

@media (min-width: 768px) {
  .details-view {
    aspect-ratio: 12 / 5;
  }

  .details-view .details-view-item,
  .details-view .details-view-item:first-child {
    aspect-ratio: auto;
  }
}

/* ================= Mobile layout fixes ================= */

/* Portal tables in phone mode ("label | value" rows): keep multi-part cells stacked, see partials/responsive_table_script */
@media (max-width: 991px) {
  .table-responsive--md tbody td > .td-content {
    text-align: right;
    min-width: 0;
  }

  /* Empty-state rows: full width, no stray column label */
  .table-responsive--md tbody td[colspan] {
    display: block !important;
    text-align: center !important;
  }

  .table-responsive--md tbody td[colspan]::before {
    display: none !important;
  }

  /* Seller listings: thumbnail + title get the whole row instead of the space left beside a label */
  .listing-table tbody td:first-child {
    display: block !important;
    text-align: left !important;
  }

  .listing-table tbody td:first-child::before {
    display: none !important;
  }

  /* Leave room for the fixed "Send Enquiry" bar on listing pages */
  body:has(.enquiry-sticky-bar) {
    padding-bottom: 72px;
  }

  body:has(.enquiry-sticky-bar) .scroll-top {
    bottom: 84px;
    right: 16px;
  }

  .enquiry-sticky-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

.action-dropdown-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid hsl(var(--border-color));
  background: transparent;
  font-size: 20px;
  color: hsl(var(--heading-color));
}

.custom--modal .modal-header .btn-close.enquiry-modal-close {
  --size: 36px;
  flex-shrink: 0;
}

.generator-description {
  overflow-wrap: anywhere;
}

.generator-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.generator-description img,
.generator-description iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  .buyer-listing-snapshot {
    flex-direction: column;
    align-items: stretch;
  }

  .buyer-listing-snapshot__thumb {
    display: block;
  }

  .buyer-listing-snapshot__thumb img {
    width: 100%;
    height: auto;
  }
}

/* Cookie notice: a slim bar instead of a large card, so it doesn't cover the page */
.cookies-card {
  width: auto;
  max-width: 460px;
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  color: hsl(var(--body-color));
  background: hsl(var(--white));
  border-radius: 12px;
  box-shadow: 0 8px 28px hsl(var(--black) / 16%);
}

.cookies-card__content {
  font-size: 13px;
  margin: 0;
}

.cookies-card__btn {
  flex-shrink: 0;
  padding: 8px 20px;
}

@media (max-width: 575px) {
  .cookies-card {
    max-width: none;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 12px;
  }

  .cookies-card__content {
    font-size: 12px;
  }
}

/* On listing pages, sit above the fixed "Send Enquiry" bar */
@media (max-width: 991px) {
  body:has(.enquiry-sticky-bar) .cookies-card {
    bottom: 80px;
  }
}

/* Header menu: keep each link on one line, and tighten spacing on small laptops (1200–1399px) where all items share one row */
@media (min-width: 1200px) {
  .header .nav-menu .nav-item .nav-link {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .header .nav-menu .nav-item {
    padding-right: 2px;
  }

  .header .nav-menu .nav-item .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

/* Home search box: 5 fields + button. Tablets 3 per row, large phones 2 per row */
.banner-form-btn {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .banner-form-group {
    width: calc((100% - 32px) / 3);
  }
}

@media (max-width: 575px) {
  .banner-form-group {
    width: calc(50% - 8px);
  }
}

@media (max-width: 424px) {
  .banner-form-group {
    width: 100%;
  }
}

/* Header Login / Register menu: buyer and seller entry points in one place */
.header-auth {
  position: relative;
}

/* The theme keeps closed menus in the layout (hidden, not removed), so anchor it inside the page edge */
.header-auth__menu {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 250px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px hsl(var(--black) / 0.12);
}

.header-auth__group + .header-auth__group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid hsl(var(--black) / 0.08);
}

.header-auth__label {
  display: block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--black) / 0.55);
}

.header-auth__menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.header-auth__menu .dropdown-item i {
  font-size: 1.15rem;
  color: hsl(var(--base));
}

.header-auth__menu .dropdown-item:hover,
.header-auth__menu .dropdown-item:focus {
  background: hsl(var(--base) / 0.08);
  color: hsl(var(--base));
}

.header-auth-mobile {
  display: grid;
  gap: 12px;
}

.header-auth-mobile .header-auth__label {
  padding: 0 0 6px;
}

.header-auth-mobile__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ---------- Compare listings ---------- */
.compare-btn:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid hsl(var(--black) / 10%);
  background: hsl(var(--white));
  color: hsl(var(--heading-color));
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.15s;
}

.compare-btn:not(.btn):hover {
  color: hsl(var(--base));
  border-color: hsl(var(--base));
}

.compare-btn.is-active {
  color: hsl(var(--white));
  background: hsl(var(--base));
  border-color: hsl(var(--base));
}

.compare-btn:not(.btn):active {
  transform: scale(0.94);
}

.compare-btn--card {
  position: absolute;
  top: 56px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 18px;
  box-shadow: 0 2px 8px hsl(var(--black) / 15%);
}

.compare-btn--wide {
  width: 100%;
  padding: 10px 16px;
  font-weight: 600;
}

.details-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.header-compare {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid hsl(var(--black) / 10%);
  color: hsl(var(--heading-color));
  font-size: 22px;
}

.header-compare:hover {
  color: hsl(var(--base));
  border-color: hsl(var(--base));
}

.header-compare__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: hsl(var(--base));
  color: hsl(var(--white));
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px;
}

.compare-empty {
  padding: 60px 16px;
  border-radius: 16px;
  background: hsl(var(--white));
  box-shadow: 0 8px 16px hsl(var(--black) / 6%);
}

.compare-empty__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: hsl(var(--base) / 0.08);
  color: hsl(var(--base));
  font-size: 36px;
}

.compare-table-wrapper {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: 16px;
  background: hsl(var(--white));
  box-shadow: 0 8px 16px hsl(var(--black) / 6%);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: calc(160px + var(--compare-columns) * 220px);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid hsl(var(--black) / 6%);
  font-size: 0.9375rem;
  vertical-align: top;
  text-align: left;
}

.compare-table__label {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 160px;
  background: hsl(var(--white));
  color: hsl(var(--black) / 0.65);
  font-weight: 500;
}

.compare-table__group th {
  background: hsl(var(--base) / 0.06);
  color: hsl(var(--heading-color));
  font-weight: 700;
  position: sticky;
  left: 0;
  z-index: 3;
}

.compare-table tr.is-different td {
  font-weight: 600;
  color: hsl(var(--heading-color));
}

.compare-table.differences-only tr.is-same {
  display: none;
}

.compare-card {
  position: relative;
  font-weight: 400;
}

.compare-card__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.compare-card__title {
  display: block;
  margin: 10px 0 4px;
  color: hsl(var(--heading-color));
  font-weight: 600;
  line-height: 1.35;
}

.compare-card__price {
  display: block;
  margin-bottom: 10px;
  color: hsl(var(--base));
  font-size: 1.1rem;
  font-weight: 700;
}

.compare-card__remove {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 1;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: hsl(var(--white));
  box-shadow: 0 2px 8px hsl(var(--black) / 20%);
  color: hsl(var(--heading-color));
}

.compare-card__remove:hover {
  color: hsl(var(--base));
}

/* On a phone the row-label column would take a third of the screen and sit empty beside the cards,
   so the labels move inside each cell and the listings get the full width. */
@media (max-width: 575px) {
  .compare-table__label {
    display: none;
  }

  .compare-table {
    min-width: calc(var(--compare-columns) * 180px);
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: hsl(var(--black) / 0.55);
    font-size: 0.75rem;
    font-weight: 500;
  }
}

/* Seller contact shown to the buyer as soon as an enquiry is sent */
.enquiry-seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid hsl(var(--base) / 0.3);
  border-radius: 10px;
  background: hsl(var(--base) / 0.05);
}

.enquiry-seller__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--black) / 0.55);
}

.enquiry-seller__company {
  font-size: 1.0625rem;
}

.enquiry-seller__person {
  font-size: 0.875rem;
  color: hsl(var(--black) / 0.7);
}

.enquiry-seller__phone {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: hsl(var(--base));
}

/* "Show Number" on listing pages */
.show-number__result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid hsl(var(--base) / 0.3);
  border-radius: 999px;
  background: hsl(var(--base) / 0.06);
  text-align: center;
}

.show-number__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--black) / 0.55);
}

.show-number__phone {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--base));
}

.show-number__note {
  margin-top: 6px;
  font-size: 13px;
  color: hsl(var(--black) / 0.65);
  text-align: center;
}

/* The theme sets .btn { display: inline-block !important }, which beats Bootstrap's .d-none,
   so a button hidden by script stayed visible (e.g. "Show Number" after the number appears). */
.btn.d-none,
.btn.d-none:not(.btn) {
  display: none !important;
}
