html {
  overflow-x: hidden;
}

body.search-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body.search-body .search-document {
  min-height: 100vh;
  overflow: visible;
}

body.search-body .search-page {
  overflow: visible;
}

.search-document {
  min-height: 100vh;
}

.search-results-wrap {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.search-page {
  min-height: 70vh;
}

.search-header {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.search-header h1 {
  font-weight: 800;
}

/* ================================
   Responsive search result cards
================================ */

.search-result-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.search-result-card .row {
  min-width: 0;
}

.search-result-card .card-body {
  min-width: 0;
  padding: clamp(0.85rem, 1.6vw, 1.25rem);
}

.search-result-image-wrap {
  height: 100%;
  min-height: clamp(145px, 18vw, 190px);
  background: #eef1f4;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.search-result-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  padding: clamp(6px, 1vw, 10px);
  display: block;
}

.search-result-title {
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem !important;

  overflow-wrap: anywhere;
}

.search-result-price-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;

  font-weight: 900;
  line-height: 1.2;
}

.search-result-btc-price {
  font-size: clamp(0.95rem, 1.6vw, 1.42rem);
  color: #111827;
  white-space: nowrap;
  font-weight: 950;
  line-height: 1.05;
}

.search-result-fiat-price {
  font-size: clamp(0.82rem, 1.25vw, 1.05rem);
  color: #6b7280;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.05;
}

.search-result-fiat-price {
  position: relative;
  top: -1px;
}

.search-result-description {
  max-width: 850px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;

  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.45;
}

.search-title-seller-wrap {
  display: flex;
  align-items: center;
  gap: 0.32rem;

  margin-left: 0;
  margin-top: 0.38rem;
  margin-bottom: 0.62rem;

  flex-wrap: wrap;
  min-width: 0;
}

.search-title-from {
  color: #6b7280;
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 700;
  line-height: 1;
}

.search-seller-link {
  border: 0;
  background: transparent;
  padding: 0;

  color: #0d6efd;

  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 900;

  line-height: 1;
  text-decoration: none;

  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-seller-link:hover {
  text-decoration: underline;
}

.search-card-seller-avatar {
  width: clamp(24px, 3vw, 30px);
  height: clamp(24px, 3vw, 30px);

  margin-right: 0.35rem;

  border-radius: 999px;

  object-fit: cover;

  background: #eef1f4;
  border: 1px solid rgba(15, 23, 42, 0.12);
}


.search-result-price {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 800;
  white-space: nowrap;
}

.search-fulfillment-costs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;

  margin-top: 0.3rem;
  margin-bottom: 0.2rem;

  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

.search-fulfillment-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  flex-wrap: wrap;

  font-size: clamp(0.72rem, 1vw, 0.82rem);
  line-height: 1.15;
}

.search-fulfillment-prefix {
  font-weight: 800;
  color: #6b7280;
}

.search-fulfillment-btc,
.search-fulfillment-fiat {
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
}

.search-fulfillment-purpose {
  font-weight: 700;
  color: #6b7280;
}

.search-fulfillment-label {
  text-align: right;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  color: #6b7280;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.search-shipping-method {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;

  padding: 0.32rem 0.65rem;
  border-radius: 999px;

  background: #eef6ff;
  color: #0f4c81;

  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
}

.search-own-listing-note {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  padding: 0.55rem 0.85rem;
  border-radius: 999px;

  background: #eef2ff;
  color: #3730a3;

  font-weight: 800;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
}

.search-add-cart-btn {
  border-radius: 999px;
  font-weight: 900;

  padding-inline: clamp(0.85rem, 2vw, 1.5rem);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
}

.search-add-cart-btn:hover {
  transform: translateY(-1px);
}

.search-result-card-unavailable {
  opacity: 0.72;
}

.search-result-card-unavailable .card-body,
.search-result-card-unavailable .search-result-image-wrap {
  filter: grayscale(0.35);
}

.search-unavailable-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: auto;
}

.search-unavailable-message {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.65rem 0.9rem;
  border-radius: 999px;

  background: #fff3cd;
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #6b4f00;

  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 800;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
}

/* Tablet: stop the price column from crushing the title */
@media (max-width: 991.98px) {
  .search-result-card .card-body > .d-flex.justify-content-between {
    flex-direction: column;
  }

  .search-result-card .text-end {
    text-align: left !important;
  }

  .search-result-price-line,
  .search-fulfillment-costs,
  .search-fulfillment-line,
  .search-fulfillment-label {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
}

/* Mobile: cleaner stacked card */
@media (max-width: 767.98px) {
  .search-result-image-wrap {
    height: 190px;
    min-height: 190px;
  }

  .search-result-image {
    height: 190px;
  }

  .search-result-card .card-body {
    padding: 0.95rem;
  }

  .search-title-seller-wrap {
    gap: 0.28rem;
    margin-bottom: 0.55rem;
  }

  .search-seller-link {
    max-width: 130px;
  }

  .seller-verified-pill,
  .seller-unverified-pill {
    height: 20px;
    font-size: 0.58rem;
    padding-inline: 0.48rem;
  }

  .search-result-card .mt-auto.d-flex {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .search-add-cart-btn {
    width: 100%;
  }
}

/* Tiny phones */
@media (max-width: 420px) {
  .search-result-title {
    font-size: 1.08rem;
  }

  .search-result-btc-price,
  .search-result-fiat-price {
    font-size: 0.92rem;
  }

  .search-result-image-wrap,
  .search-result-image {
    height: 165px;
    min-height: 165px;
  }
}

.seller-verified-pill,
.seller-unverified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 21px;
  padding: 0 0.55rem;

  border-radius: 999px;

  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;

  line-height: 1;
  white-space: nowrap;

  border: 1px solid transparent;
}

/* VERIFIED */

.seller-verified-pill {
  background: linear-gradient(
    180deg,
    rgba(25, 135, 84, 0.16) 0%,
    rgba(25, 135, 84, 0.10) 100%
  );

  color: #157347;

  border-color: rgba(25, 135, 84, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 1px 2px rgba(25, 135, 84, 0.08);
}

.seller-verified-pill::before {
  content: "✓";
  font-size: 0.62rem;
  font-weight: 900;
  margin-right: 0.3rem;
  position: relative;
  top: -0.5px;
}

/* NOT VERIFIED */

.seller-unverified-pill {
  background: linear-gradient(
    180deg,
    rgba(108, 117, 125, 0.12) 0%,
    rgba(108, 117, 125, 0.08) 100%
  );

  color: #6c757d;

  border-color: rgba(108, 117, 125, 0.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 1px 2px rgba(0,0,0,0.04);
}

/* ================================
   Seller profile modal polish
================================ */

.seller-profile-modal {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.seller-profile-header {
  padding: 1.15rem 1.35rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.seller-profile-modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.seller-profile-header .modal-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.seller-profile-body {
  padding: 0;
  background: #f8f9fb;
  max-height: min(72vh, 680px);
  overflow-y: auto;
}

.seller-profile-tabs-row {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.seller-profile-tabs {
  padding: 0;
  background: transparent;
  border-bottom: 0;
  gap: 0.4rem;
}

.seller-profile-tabs .nav-link {
  border: 0;
  color: #6b7280;
  font-weight: 800;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
}

.seller-profile-tabs .nav-link:hover {
  color: #111827;
  background: #f3f4f6;
}

.seller-profile-tabs .nav-link.active {
  color: #111827;
  background: #eef6ff;
}

.seller-store-btn {
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.seller-profile-tab-content {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.seller-overview-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.seller-overview-left,
.seller-overview-right {
  min-width: 0;
  max-width: none;
}

.seller-profile-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.seller-profile-avatar {
  width: clamp(84px, 12vw, 120px);
  height: clamp(84px, 12vw, 120px);
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f4;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.seller-profile-username {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;

  overflow-wrap: anywhere;
}

.seller-profile-age {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 700;
}

.seller-profile-bio {
  margin-top: 1rem;
  margin-left: 0;

  max-width: none;
  max-height: none;

  overflow: visible;

  padding: 0;

  background: transparent;
  border: 0;

  color: #374151;
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
}

.seller-profile-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  font-size: 0.76rem;
  font-weight: 900;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  margin-bottom: 0.65rem;
}

.seller-trust-list,
.seller-trust-list.has-open-detail {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.seller-trust-item {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.seller-trust-item:first-of-type {
  border-top: 0;
}

.seller-trust-row,
.seller-trust-static-row {
  width: 100%;
  border: 0;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;

  padding: 0.7rem 0;
  text-align: left;
}

.seller-trust-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;

  min-width: 0;

  color: #6b7280;
  font-weight: 800;
}

.seller-trust-row-clickable {
  cursor: pointer;
}

.seller-trust-row-clickable:hover .seller-trust-label {
  color: #111827;
}

.seller-trust-static-row span {
  color: #6b7280;
  font-weight: 800;
}

.seller-trust-static-row strong {
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.seller-trust-chevron {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 0.82rem;
  transition: transform 180ms ease;
}

.seller-trust-item.open .seller-trust-chevron {
  transform: rotate(180deg);
}

.seller-trust-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.seller-trust-detail.open {
  grid-template-rows: 1fr;
}

.seller-trust-detail-inner {
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  color: #374151;
  font-size: 0.88rem;
  font-weight: 800;

  min-width: 0;
}

.seller-trust-detail.open .seller-trust-detail-inner {
  padding: 0.15rem 0 0.75rem;
}

.seller-trust-contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.seller-trust-detail-verified,
.seller-trust-detail-unverified {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: lowercase;
  white-space: nowrap;
}

.seller-trust-detail-verified {
  color: #198754;
}

.seller-trust-detail-unverified {
  color: #6c757d;
}

.seller-mini-verified-pill,
.seller-mini-unverified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 20px;
  padding: 0 0.52rem;

  border-radius: 999px;

  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;

  border: 1px solid transparent;
  flex: 0 0 auto;
}

.seller-mini-verified-pill {
  background: rgba(25, 135, 84, 0.12);
  color: #157347;
  border-color: rgba(25, 135, 84, 0.22);
}

.seller-mini-verified-pill::before {
  content: "✓";
  margin-right: 0.25rem;
  font-weight: 900;
}

.seller-mini-unverified-pill {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.18);
}

.seller-profile-loading,
.seller-profile-empty {
  min-height: 260px;
  background: transparent;
  border: 0;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #6b7280;
  font-weight: 700;
}

.seller-profile-empty {
  gap: 0.75rem;
  text-align: left;
}

.seller-profile-empty i {
  font-size: 1.5rem;
  color: #0d6efd;
}

.seller-trust-info-btn {
  border: 0;
  background: transparent;
  padding: 0;

  width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #9ca3af;
  cursor: pointer;
}

.seller-trust-info-btn:hover {
  color: #4b5563;
}

.seller-trust-info-btn i {
  font-size: 0.82rem;
  line-height: 1;
}

.seller-trust-tooltip .tooltip-inner {
  max-width: 290px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

#sellerProfileModal {
  overflow-y: hidden !important;
}

#sellerProfileModal .modal-dialog {
  width: min(980px, calc(100vw - 2rem));
  max-width: 980px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

#sellerProfileModal .modal-content {
  max-height: calc(100vh - 3rem);
}

/* Tablet / mobile */
@media (max-width: 767.98px) {
  .seller-profile-body {
    max-height: calc(100vh - 7rem);
  }

  .seller-profile-tabs-row {
    align-items: stretch;
    flex-direction: column;
  }

  .seller-store-btn {
    justify-content: center;
  }

  .seller-profile-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .seller-overview-layout {
    grid-template-columns: 1fr;
  }

  .seller-profile-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .seller-profile-avatar {
    width: 84px;
    height: 84px;
  }

  .seller-trust-row,
  .seller-trust-static-row,
  .seller-trust-detail-inner {
    align-items: flex-start;
  }
}

/* Tiny phones */
@media (max-width: 420px) {
  .seller-profile-main {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .seller-profile-bio {
    text-align: left;
  }

  .seller-trust-row,
  .seller-trust-static-row,
  .seller-trust-detail-inner {
    flex-direction: column;
    gap: 0.35rem;
  }

  .seller-trust-static-row strong {
    text-align: left;
  }
}

.search-pagination {
  max-width: 1180px;
  margin: 3.25rem auto 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.search-pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-pagination-number,
.search-pagination-arrow,
.search-pagination-ellipsis {
  min-width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 0.92rem;
  font-weight: 800;

  text-decoration: none;
}

.search-pagination-number,
.search-pagination-arrow {
  color: #374151;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.search-pagination-number:hover,
.search-pagination-arrow:hover {
  color: #111827;
  background: #f3f4f6;
}

.search-pagination-number.active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;

  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.search-pagination-arrow.disabled {
  pointer-events: none;
  opacity: 0.35;
}

.search-pagination-ellipsis {
  color: #9ca3af;
  cursor: default;
}

@media (max-width: 575.98px) {
  .search-pagination {
    gap: 0.4rem;
  }

  .search-pagination-pages {
    gap: 0.2rem;
  }

  .search-pagination-number,
  .search-pagination-arrow,
  .search-pagination-ellipsis {
    min-width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
}

.search-address-modal {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.22),
    0 8px 24px rgba(15, 23, 42, 0.1);
}

.search-address-modal-header {
  padding: 1.25rem 1.35rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.search-address-modal-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
}

.search-address-modal-subtitle {
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-address-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: #f3f4f6;
  opacity: 1;
}

.search-address-close:hover {
  background-color: #e5e7eb;
}

.search-address-modal-body {
  padding: 1.25rem 1.35rem;
  background: #ffffff;
}

.search-address-tabs-row {
  margin-bottom: 1.25rem;
}

.search-address-tabs {
  gap: 0.4rem;
  border-bottom: 0;
}

.search-address-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 850;
}

.search-address-tabs .nav-link:hover {
  color: #111827;
  background: #e5e7eb;
}

.search-address-tabs .nav-link.active {
  color: #ffffff;
  background: #111827;
}

.search-address-tab-content {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.25rem;
}

.search-address-tab-content .tab-pane {
  min-height: auto;
}

#savedAddressesPane,
#newAddressPane {
  overflow: visible;
}

.search-address-field {
  margin-bottom: 1rem;
}

.search-address-field .form-label {
  margin-bottom: 0.35rem;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 800;
}

.search-address-field .form-control,
.search-address-field .form-select {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-weight: 600;
}

.search-address-field .form-control:focus,
.search-address-field .form-select:focus {
  background-color: #ffffff;
  border-color: #111827;
  box-shadow: 0 0 0 0.15rem rgba(17, 24, 39, 0.1);
}

.search-address-info-box {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.search-address-save-btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 1.1rem;
  background: #111827;
  border: 1px solid #111827;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.search-address-save-btn:hover,
.search-address-save-btn:focus {
  background: #020617;
  border-color: #020617;
  color: #ffffff;
}

.search-saved-addresses-list {
  min-height: 360px;
  max-height: 360px;
  overflow-y: scroll;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  padding-right: 0.25rem;
}

#searchAddressModal .modal-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-width: 760px;
}

#searchAddressModal .modal-content {
  width: 100%;
}

body.modal-open {
  padding-right: 0 !important;
}

#searchAddressModal {
  padding-right: 0 !important;
}

.search-saved-addresses-list .saved-address-item {
  border-radius: 16px;
}

@media (max-width: 575.98px) {
  .search-address-tab-content {
    max-height: 64vh;
  }

  .search-saved-addresses-list {
    min-height: auto;
    max-height: 46vh;
  }
}

/* ================================
   Search location controls polish
================================ */

.search-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;

  min-height: 42px;

  padding: 0.48rem 0.82rem;

  border-radius: 999px;

  background: rgba(255,255,255,0.96);

  border: 1px solid rgba(15, 23, 42, 0.08);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.06),
    0 2px 6px rgba(15, 23, 42, 0.04);

  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 700;

  color: #111827;

  flex-wrap: wrap;
}

.search-location-source {
  color: #6b7280;
  font-weight: 600;
}

.search-location-action {
  border-radius: 999px !important;

  min-height: 32px;

  padding: 0.28rem 0.72rem !important;

  font-size: 0.78rem;
  font-weight: 800;

  border: 1px solid rgba(15, 23, 42, 0.08);

  background: #ffffff;

  transition:
    background 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.search-location-action:hover,
.search-location-action:active,
.search-location-action:focus {
  background: #e5e7eb;

  border-color: rgba(15, 23, 42, 0.12);

  color: #111827;

  transform: translateY(-1px);

  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.search-country-menu {
  min-width: 260px;

  padding: 0.45rem;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.16),
    0 4px 14px rgba(15, 23, 42, 0.06);

  overflow: hidden;
}

.guest-country-list {
  max-height: 320px;
  overflow-y: auto;
  min-width: 100%;
}

.guest-country-option {
  width: 100%;

  border: 0;
  background: transparent;

  text-align: left;

  padding: 0.62rem 0.78rem;

  border-radius: 12px;

  font-size: 0.9rem;
  font-weight: 650;

  transition:
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.guest-country-option:hover,
.guest-country-option.active {
  background: #eef6ff;
  color: #0f4c81;
  font-weight: 800;

  transform: translateX(2px);
}

/* Mobile */
@media (max-width: 767.98px) {
  .search-location-pill {
    width: 100%;

    align-items: flex-start;

    border-radius: 18px;

    padding: 0.7rem 0.85rem;
  }

  .search-location-action {
    margin-left: 0 !important;
  }

  .search-country-menu {
    min-width: min(92vw, 320px);
  }
}

.search-result-card[data-item-url] {
  cursor: pointer;
}

.search-result-card:not([data-item-url]) {
  cursor: default;
}

.search-verify-to-buy-btn {
  border-radius: 999px;
  font-weight: 900;
  padding-inline: clamp(0.85rem, 2vw, 1.5rem);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  white-space: nowrap;
}

.search-result-card[data-item-url]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
}

/* Keep navbar dropdowns above search cards */
body.search-body nav.navbar,
body.search-body .navbar,
body.search-body .cryptrr-navbar,
body.search-body .cryptrr-public-navbar {
  position: relative;
  z-index: 5000 !important;
}

body.search-body .navbar .dropdown,
body.search-body .navbar .dropdown-menu,
body.search-body .dropdown-menu.show {
  z-index: 5100 !important;
}

.search-result-card {
  z-index: 1;
}

/* Bootstrap offcanvas must sit above fixed/sticky navbar */
body.search-body .offcanvas,
body.search-body .offcanvas.show,
body.search-body .offcanvas.showing {
  z-index: 6000 !important;
}

body.search-body .offcanvas-backdrop {
  z-index: 5990 !important;
}

/* Bootstrap modals must sit above navbar, dropdowns, cards, and offcanvas */
body.modal-open .modal,
body.search-body .modal,
body.search-body .modal.show {
  z-index: 7000 !important;
}

body.modal-open .modal-backdrop,
body.search-body .modal-backdrop {
  z-index: 6990 !important;
}

.search-price-updated {
  animation: searchPriceUpdate 360ms ease;
}

@keyframes searchPriceUpdate {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  35% {
    transform: translateY(-4px);
    opacity: 0.45;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

body.search-body .tooltip {
  z-index: 7005 !important;
}