/* Page background */
.layout__content--offers {
  background: #f5f7fb;
  padding: 40px 48px 48px;
}

/* Header */
.or-header__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.or-header__subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

/* Offers list */
.or-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card container */
.offer-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 28px 20px;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.06);
}

/* Top row */
.offer-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-card__status--countered {
  background: #fff7ed;   /* soft orange */
  color: #c05621;        /* darker orange text */
}



/* Plate style – match Reg Marketplace cards */
/* Plate style – marketplace look, original height */
.offer-card__plate {
  background: #DEDE17;
  border-radius: 12px;
  padding: 16px 40px;
  border: 1px solid #D1C044;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}


.offer-card__plate-text {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;
  font-size: 34px;                     /* same size as before */
  font-weight: 500;                    /* softer, like elsewhere */
                /* marketplace spacing */
  text-transform: uppercase;
  white-space: nowrap;
}

/* Price + status */
.offer-card__price-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-card__price {
  font-size: 24px;
  font-weight: 700;
}

.offer-card__status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.offer-card__status--declined {
  background: #fee2e2;
  color: #b91c1c;
}

.offer-card__status--pending {
  background: #fef3c7;
  color: #92400e;
}

/* Meta row */
.offer-card__meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

/* Message bubble */
.offer-card__message {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9fafb;
}

.offer-card__message-icon {
  font-size: 16px;
  margin-top: 2px;
}

.offer-card__message-text {
  font-size: 14px;
  color: #111827;
}

/* Actions row */
.offer-card__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-card__actions--muted .btn-secondary {
  opacity: 0.55;
  cursor: default;
}

/* Buttons – match the look from My Listings */
.btn-primary,
.btn-secondary,
.btn-danger-light {
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #00b4ff, #00e39f);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.btn-danger-light {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger-light:active {
  transform: translateY(0);
  box-shadow: none;
}


/* New wording but same visual as old "pending" or tweak as you like */
.offer-card__status--awaiting-response {
  background: #f3f4f6;
  color: #4b5563;
}

/* Make accepted green, same vibe as "Active Listing" */
.offer-card__status--accepted {
  background: #d1fae5;
  color: #047857;
}

/* Gold for payment received */
.offer-card__status--payment-received {
  background: #facc15;
  color: #92400e;
}

/* Green again for the buyer-confirmation wait + sold */
.offer-card__status--awaiting-buyer-confirmation,
.offer-card__status--sold {
  background: #bbf7d0;
  color: #166534;
}

/* Optional: info note under buttons */
.offer-card__info-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}


.offer-card__meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
  color: #9ca3af;              /* grey to match meta text */
}

.offer-card__meta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.offer-card__message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
  color: #cbd5f5;              /* tweak to taste */
}

.offer-card__message-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* Meta row: "19 min ago · From buyer" */
.offer-card__meta {
  display: flex;
  align-items: center;      /* vertically centre icon + text */
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.offer-card__meta-item {
  display: inline-flex;
  align-items: center;      /* centre clock with the text */
  gap: 6px;
}

/* clock icon */
.offer-card__meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9ca3af;
}

.offer-card__meta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Message row: bubble + text */
.offer-card__message {
  display: flex;
  align-items: center;      /* centre bubble with the text */
  padding: 12px 16px;
}

.offer-card__message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
  color: #cbd5f5;
}

.offer-card__message-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.offer-card__message-text {
  margin: 0;
}

.offer-card__price-status {
  min-width: 0; /* allows children to shrink instead of forcing wraps */
}

.offer-card__status {
  white-space: nowrap; /* stop pill wrapping into a “circle” */
}


@media (max-width: 768px) {
  /* Make each offer card breathe on mobile */
  .offer-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  /* Stack the top row so it never gets cramped */
  .offer-card__top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* Plate should be full width + centered */
  .offer-card__plate {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
  }

  .offer-card__plate-text {
    width: 100%;
    text-align: center;
    font-size: clamp(22px, 8vw, 32px);
  }

  /* Price + status as a clean row under the plate */
  .offer-card__price-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  /* Stop the long status pill from breaking layout */
  .offer-card__status {
    font-size: 10px;
    padding: 6px 10px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Meta row can wrap nicely */
  .offer-card__meta {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  /* Buttons as a 2x2 grid */
  .offer-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .offer-card__actions .btn-primary,
  .offer-card__actions .btn-secondary,
  .offer-card__actions .btn-danger-light {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* -------- Mobile: hide desktop sidebar + add bottom nav space -------- */
@media (max-width: 768px) {
  #side-nav {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .layout__content--offers {
    padding: 18px 16px 120px; /* space for bottom nav */
    min-height: auto;
  }
}

