/* Push content below fixed header(s) and set page width */
.listoffercontainer {
  padding: 130px 20px 20px;   /* top padding clears fixed header */
  max-width: 800px;           /* match seller width */
  margin: 0 auto;
  font-family: sans-serif;    /* match seller font */
}

/* Page title (scoped to this page only) */
.listoffercontainer .pagetitle {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 12px;
}

/* Where offers get injected by JS */
.offerlistcontainer {
  /* seller uses vertical spacing via margin-bottom on .offerrow */
}

/* Each individual offer block (mirror seller look) */
.offerrow {
  border: 1px solid #22AC38;      /* same green border */
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Info area above the actions (same naming as seller) */
.offercardinfo {
  margin-bottom: 12px;
}

/* Details table (mirrors seller table) */
.offer-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.offer-details-table td {
  padding: 4px 8px;
  vertical-align: top;
}

/* Buttons area (seller only specified spacing on buttons) */
.offeractions button {
  margin-right: 10px;
}

/* Collapsible counter form (match seller) */
.counterform {
  margin-top: 15px;
  background-color: #f0f8ff;
  border-radius: 4px;
  padding: 12px;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
  display: none;
  max-height: 0;
  opacity: 0;
}

/* Row for label + input inside counter form */
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.form-row label {
  margin-right: 8px;
  white-space: nowrap;
}

/* Short numeric input (price) */
.short-input {
  width: 100px; /* keep parity with seller */
}

/* Counter message box (mirror seller) */
.counter-message {
  width: 100%;
  resize: vertical;
  min-height: 60px;
  padding: 6px;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Optional wrappers if you decide to use them in HTML/JS */
.counterform-actions,
.form-actions {
  display: flex;
  gap: 10px;
}
.form-actions button {
  margin-right: 10px; /* keep parity with seller rule */
}

/* Countdown styling (colors match seller) */
.countdown-clock {
  font-weight: bold;
}
.countdown-warning {
  color: #E60033; /* Red for < 4 hours */
}
.countdown-normal {
  color: #00479D; /* Blue for 4+ hours */
}
.countdown-expired {
  color: #000000; /* Black when expired */
}

/* Outcome labels (match seller) */
.accepted-label {
  color: #22AC38;
  font-weight: bold;
}
.declined-label {
  color: #E60033;
  font-weight: bold;
}

/* Optional “box” variants (provided in seller CSS) */
.offer-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: #fff;
}
.offer-details { font-size: 14px; line-height: 1.6; }
.offer-status  { margin-top: 8px; }

/* History toggle + table */
.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #00479D;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.history-block {
  margin-top: 10px;
}

.history-empty {
  font-style: italic;
  opacity: 0.8;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13px;
}

.history-table th,
.history-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.pagetitlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.learnmore-btn {
  padding: 6px 12px;
  border: 1px solid #22AC38;
  background: #fff;
  color: #22AC38;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}
.learnmore-btn:hover { background: #f3fff6; }


/* --------- Responsive niceties (non-intrusive) --------- */
@media (max-width: 540px) {
  .form-row { flex-wrap: wrap; }
  .short-input { width: 120px; } /* slightly easier on small screens */
  .offeractions button { margin-bottom: 8px; }
}

