/* ==========================================================================
   US AUCTIONS - /auctions-usa/

   Own stylesheet on purpose: the section is edited often, and the module
   loads it with the file time as the version, so a change here needs no
   template edit and no cache clearing.
   ========================================================================== */
/* ============================================
   US AUCTIONS  /auctions-usa/
   Search panel in the spirit of the homepage quick search, plus a card grid.
   ============================================ */
.amd-auc-search {
  background: rgba(255,255,255,0.88);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.amd-auc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.amd-auc-row-last { margin-bottom: 0; }
.amd-auc-lbl { font: 12px Tahoma, Arial, sans-serif; color: #4a5568; }
.amd-auc-sel, .amd-auc-text, .amd-auc-num {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #c9d2dc;
  border-radius: 4px;
  background: #ffffff;
  font: 13px Tahoma, Arial, sans-serif;
  color: #222222;
  box-sizing: border-box;
}
.amd-auc-text { flex: 1 1 260px; min-width: 180px; }
.amd-auc-sel  { min-width: 150px; }
.amd-auc-num  { width: 110px; }
.amd-auc-check { font: 12px Tahoma, Arial, sans-serif; color: #2d3748; display: inline-flex; align-items: center; gap: 5px; }
/* the English wording of the auctions, next to ours */
.amd-auc-check i { font-style: normal; color: #8a93a0; }
button.amd-auc-btn {
  height: 34px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #aa0000;
  color: #ffffff;
  font: bold 13px Tahoma, Arial, sans-serif;
  cursor: pointer;
}
button.amd-auc-btn:hover { background: #8d0000; }
a.amd-auc-reset { font: 12px Tahoma, Arial, sans-serif; color: #2b6cb0; }

/* Cards - four in a row, big picture, all the auction data underneath */
.amd-auc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
}
.amd-auc-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.9);
  overflow: hidden;
}
.amd-auc-card:hover { background: #ffffff; }
.amd-auc-picked { box-shadow: inset 0 0 0 2px #aa0000; }
.amd-auc-card-img { position: relative; display: block; line-height: 0; }
.amd-auc-imglink { display: block; line-height: 0; }
.amd-auc-card-img img { display: block; width: 100%; height: 230px; object-fit: cover; }
.amd-auc-nopic {
  width: 100%; height: 230px;
  display: flex; align-items: center; justify-content: center;
  background: #e8edf3; font-size: 34px;
}
/* photo strip indicator, filled while the mouse walks across the picture */
.amd-auc-dots {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; gap: 3px; pointer-events: none;
}
.amd-auc-dots i {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.45);
  transition: background .12s;
}
.amd-auc-dots i.on { background: #ffffff; }
.amd-auc-src {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 7px; border-radius: 3px;
  font: bold 10px Tahoma, Arial, sans-serif; color: #ffffff; letter-spacing: .5px;
  background: #2b6cb0;
}
.amd-auc-src-copart { background: #1f7a3d; }
.amd-auc-src-iaai   { background: #b8531b; }
.amd-fav-icon.amd-auc-fav { top: 6px; right: 6px; }
.amd-auc-cmp {
  position: absolute; top: 10px; right: 46px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.92);
  font: 11px Tahoma, Arial, sans-serif; color: #2d3748;
  cursor: pointer; user-select: none;
}
.amd-auc-cmp input { margin: 0; }

.amd-auc-card-body { display: block; padding: 9px 11px 11px; font-family: Tahoma, Arial, sans-serif; }
/* logo of the make, from the pictures the ads already use */
.amd-auc-card-head { display: flex; align-items: flex-start; gap: 8px; }
img.amd-auc-logo { width: 34px; height: auto; max-height: 26px; object-fit: contain; flex-shrink: 0; margin-top: 1px; }
.amd-auc-lot-top { display: flex; align-items: center; gap: 12px; }
img.amd-auc-lot-logo { width: 54px; height: auto; max-height: 40px; object-fit: contain; flex-shrink: 0; }
a.amd-auc-card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: bold; color: #111111; line-height: 1.35; text-decoration: none;
}
a.amd-auc-card-name:hover { color: #aa0000; text-decoration: underline; }

/* Card data: one line per value, grouped by meaning and tinted by group.
   Mileage and damage share one shade, engine and gearbox another, keys and
   start code a third - so a glance never mixes the gearbox of one line with
   the drive of the next. Inside a group every other line is a shade deeper. */
.amd-auc-rows { display: flex; flex-direction: column; gap: 2px; margin: 9px 0 0; }
.amd-auc-frow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 5px 9px; border-radius: 6px;
  font-size: 12px; line-height: 1.45;
}
.amd-auc-frow span { color: #5b6b7e; flex-shrink: 0; }
.amd-auc-frow span::after { content: ":"; }
.amd-auc-frow b { color: #16212e; text-align: right; overflow-wrap: anywhere; }
/* condition, papers */
.amd-auc-r-a { background: #eef4fb; }
.amd-auc-r-a.amd-auc-r-dark { background: #e4edf8; }
/* engine, gearbox, drive */
.amd-auc-r-b { background: #f0f1fa; }
.amd-auc-r-b.amd-auc-r-dark { background: #e6e8f5; }
/* keys, start code */
.amd-auc-r-c { background: #eef7f1; }
.amd-auc-r-c.amd-auc-r-dark { background: #e3f0e8; }
/* money */
.amd-auc-r-d { background: #fdf6ec; }
.amd-auc-r-d.amd-auc-r-dark { background: #f9eeda; }
/* place and time */
.amd-auc-r-e { background: #f4f6f8; }
.amd-auc-r-e.amd-auc-r-dark { background: #eaeef3; }
/* lot number, VIN */
.amd-auc-r-f { background: #f2f4f7; }
.amd-auc-r-f.amd-auc-r-dark { background: #e9ecf1; }
.amd-auc-r-f b { font-family: Consolas, monospace; font-size: 11px; font-weight: normal; letter-spacing: .3px; }
.amd-auc-mono { font-family: Consolas, monospace; font-size: 11px; font-weight: normal; }

.amd-auc-card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e9f0;
}
.amd-auc-price { font-size: 20px; font-weight: bold; color: #aa0000; line-height: 1.15; }
.amd-auc-price i { font-size: 10px; font-weight: normal; font-style: normal; color: #8a93a0; display: block; margin-top: 2px; }
.amd-auc-date { font-size: 12px; color: #2d3748; white-space: nowrap; text-align: right; line-height: 1.15; }
.amd-auc-date i { display: block; font-style: normal; font-size: 10px; color: #8a93a0; margin-bottom: 3px; }
.amd-auc-ok { color: #2f855a; font-weight: bold; }

/* tray with the ticked lots */
#amd-auc-cmpbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 8px;
  background: #1a202c; color: #ffffff;
  font: 13px Tahoma, Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
#amd-auc-cmpbar b { font-size: 15px; }
a.amd-auc-cmpbar-go {
  padding: 7px 18px; border-radius: 5px; background: #aa0000; color: #ffffff;
  font-weight: bold; text-decoration: none;
}
a.amd-auc-cmpbar-go:hover { background: #8d0000; }
a.amd-auc-cmpbar-clr { color: #a0aec0; font-size: 12px; }

/* bottom strip of a card: the lot number as a button, views on our own site */
.amd-auc-cardbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px 10px; border-top: 1px solid #e8edf3;
}
a.amd-auc-ext {
  font: 11px Tahoma, Arial, sans-serif; color: #2b6cb0; text-decoration: none;
}
a.amd-auc-ext:hover { text-decoration: underline; }
a.amd-auc-lotbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 20px;
  background: #eef2f8; border: 1px solid #dbe3ed;
  font: bold 11px Tahoma, Arial, sans-serif; color: #24425f; text-decoration: none;
  letter-spacing: .2px;
}
a.amd-auc-lotbtn em {
  font-style: normal; padding: 2px 7px; border-radius: 20px;
  background: #24425f; color: #ffffff; font-size: 10px;
}
a.amd-auc-lotbtn:hover { background: #e3eaf4; border-color: #bccbdd; color: #16304a; }
.amd-auc-views { font: 11px Tahoma, Arial, sans-serif; color: #8a93a0; white-space: nowrap; }
.amd-auc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
button.amd-auc-btn-copy {
  padding: 8px 14px; border-radius: 5px; border: 1px solid #c9d2dc; background: #ffffff;
  font: bold 12px Tahoma, Arial, sans-serif; color: #1c4a7a; cursor: pointer;
}
button.amd-auc-btn-copy:hover { border-color: #1c4a7a; }
a.amd-auc-extbtn {
  padding: 8px 14px; border-radius: 5px;
  background: #1f7a3d; color: #ffffff;
  font: bold 12px Tahoma, Arial, sans-serif; text-decoration: none;
}
a.amd-auc-extbtn:hover { background: #17612f; }

/* lot page: share row, archive note, similar lots */
.amd-auc-share { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; position: relative; }
.amd-fav-icon.amd-auc-fav-lot { position: static; width: 34px; height: 34px; flex-shrink: 0; }
.amd-fav-icon.amd-auc-fav-lot::before { font-size: 30px; }
.amd-auc-copy {
  font: 12px Tahoma, Arial, sans-serif; color: #2b6cb0;
  cursor: pointer; border-bottom: 1px dashed #9fc0e0;
}
.amd-auc-copy:hover { color: #aa0000; border-bottom-color: #d9a0a0; }
.amd-auc-archived {
  padding: 10px 14px; margin-bottom: 8px;
  background: #fff5f5; border-left: 4px solid #e08a8a; border-radius: 6px;
  font: 13px Tahoma, Arial, sans-serif; color: #742a2a;
}
/* lot page: price bar, fact tiles, details list */
.amd-auc-pricebar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.amd-auc-pricebox {
  flex: 1 1 200px;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff6f6, #ffecec);
  border: 1px solid #f0c7c7;
  font-family: Tahoma, Arial, sans-serif;
}
.amd-auc-pricebox b { display: block; font-size: 26px; color: #aa0000; line-height: 1.2; }
.amd-auc-pricebox i { font-style: normal; font-size: 12px; color: #8a93a0; }
.amd-auc-pricebox-2 { background: linear-gradient(180deg, #f7fafc, #eef2f7); border-color: #d9e2ec; }
.amd-auc-pricebox-2 b { font-size: 20px; color: #1a202c; }
.amd-auc-price-lbl {
  display: block; margin-bottom: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #8a93a0;
}

.amd-auc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amd-auc-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  background: #f7fafc; border: 1px solid #e3e8ef;
  font-family: Tahoma, Arial, sans-serif;
}
.amd-auc-tile-ico { font-size: 20px; line-height: 1; flex-shrink: 0; }
.amd-auc-tile-txt { display: block; min-width: 0; }
.amd-auc-tile-lbl { display: block; font-size: 11px; color: #8a93a0; }
.amd-auc-tile b { font-size: 14px; color: #1a202c; overflow-wrap: anywhere; }
.amd-auc-tile-warn { background: #fffaf0; border-color: #f0d9b5; }
.amd-auc-tile-warn b { color: #975a16; }
.amd-auc-tile-ok { background: #f0fff4; border-color: #c3e6cd; }
.amd-auc-tile-ok b { color: #276749; }
.amd-auc-tile-no b { color: #a0aec0; }

/* Details list. A line is one colour: the label on the left, the value on the
   right one shade deeper. The next line may take another colour, but never
   light-dark-light across a line - that is what makes a table hard to read.
   The labels sit against the values, with a colon, so the pairs read as one. */
dl.amd-auc-specs {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 3px 0; margin: 0 0 14px; padding: 0;
  font: 13px Tahoma, Arial, sans-serif;
}
dl.amd-auc-specs dt {
  padding: 9px 12px 9px 14px; color: #5b6b7e;
  text-align: right; white-space: nowrap;
  border-radius: 6px 0 0 6px;
}
dl.amd-auc-specs dt::after { content: ":"; }
dl.amd-auc-specs dd {
  margin: 0; padding: 9px 14px; color: #16212e; font-weight: bold;
  overflow-wrap: anywhere; border-radius: 0 6px 6px 0;
}
/* condition and papers */
dl.amd-auc-specs .amd-auc-s-a { background: #eef4fb; }
dl.amd-auc-specs dd.amd-auc-s-a { background: #e4edf8; }
dl.amd-auc-specs .amd-auc-s-a.amd-auc-s-dark { background: #e7eff8; }
dl.amd-auc-specs dd.amd-auc-s-a.amd-auc-s-dark { background: #dde8f5; }
/* engine, gearbox, drive */
dl.amd-auc-specs .amd-auc-s-b { background: #f0f1fa; }
dl.amd-auc-specs dd.amd-auc-s-b { background: #e6e8f5; }
dl.amd-auc-specs .amd-auc-s-b.amd-auc-s-dark { background: #ebecf7; }
dl.amd-auc-specs dd.amd-auc-s-b.amd-auc-s-dark { background: #e0e2f1; }
/* keys and start code */
dl.amd-auc-specs .amd-auc-s-c { background: #eef7f1; }
dl.amd-auc-specs dd.amd-auc-s-c { background: #e3f0e8; }
dl.amd-auc-specs .amd-auc-s-c.amd-auc-s-dark { background: #e9f4ed; }
dl.amd-auc-specs dd.amd-auc-s-c.amd-auc-s-dark { background: #dcece2; }
/* money */
dl.amd-auc-specs .amd-auc-s-d { background: #fdf6ec; }
dl.amd-auc-specs dd.amd-auc-s-d { background: #f9eeda; }
dl.amd-auc-specs .amd-auc-s-d.amd-auc-s-dark { background: #fbf2e4; }
dl.amd-auc-specs dd.amd-auc-s-d.amd-auc-s-dark { background: #f6e8cf; }
/* place and time */
dl.amd-auc-specs .amd-auc-s-e { background: #f4f6f8; }
dl.amd-auc-specs dd.amd-auc-s-e { background: #eaeef3; }
dl.amd-auc-specs .amd-auc-s-e.amd-auc-s-dark { background: #eff2f6; }
dl.amd-auc-specs dd.amd-auc-s-e.amd-auc-s-dark { background: #e4e9f0; }
/* lot number and VIN */
dl.amd-auc-specs .amd-auc-s-f { background: #f2f4f7; }
dl.amd-auc-specs dd.amd-auc-s-f { background: #e9ecf1; }
dl.amd-auc-specs .amd-auc-s-f.amd-auc-s-dark { background: #eef0f4; }
dl.amd-auc-specs dd.amd-auc-s-f.amd-auc-s-dark { background: #e4e7ed; }
@media (max-width: 560px) {
  dl.amd-auc-specs { grid-template-columns: 1fr; gap: 1px 0; }
  dl.amd-auc-specs dt { text-align: left; border-radius: 6px 6px 0 0; padding-bottom: 2px; }
  dl.amd-auc-specs dd { border-radius: 0 0 6px 6px; padding-top: 4px; }
}

.amd-auc-keep {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 12px;
  background: #eef5fb; border-left: 4px solid #6fa8dc; border-radius: 8px;
  font: 12px Tahoma, Arial, sans-serif; color: #2c5282;
}

@media (max-width: 900px) { .amd-auc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .amd-auc-tiles { grid-template-columns: 1fr; } }
.amd-auc-ours { margin-top: 12px; font: 13px Tahoma, Arial, sans-serif; }
.amd-auc-ours a { color: #1c4a7a; font-weight: bold; }
.amd-auc-simhead {
  margin: 14px 0 6px; padding: 9px 14px;
  background: rgba(255,255,255,0.9);
  font: bold 14px Tahoma, Arial, sans-serif; color: #111111;
}

/* comparison table */
.amd-auc-cmp-wrap { overflow-x: auto; background: rgba(255,255,255,0.9); }
table.amd-auc-cmp-table { border-collapse: collapse; width: 100%; font: 13px Tahoma, Arial, sans-serif; }
table.amd-auc-cmp-table td { border: 1px solid #e3e8ef; padding: 8px 10px; vertical-align: middle; text-align: center; }
td.amd-auc-cmp-lbl { text-align: left; color: #6b7684; white-space: nowrap; background: #f7fafc; }
tr.amd-auc-diff td { background: #fffaf0; }
tr.amd-auc-diff td.amd-auc-cmp-lbl { background: #fff2dd; color: #7b341e; }
a.amd-auc-cmp-head { display: block; text-decoration: none; color: #111111; min-width: 170px; }
a.amd-auc-cmp-head img { display: block; width: 100%; height: 120px; object-fit: cover; margin-bottom: 6px; }
a.amd-auc-cmp-head b { display: block; font-size: 13px; line-height: 1.3; }
a.amd-auc-cmp-head:hover b { color: #aa0000; text-decoration: underline; }
.amd-auc-dash { color: #cbd5e0; }
.amd-auc-empty {
  padding: 26px; text-align: center; background: rgba(255,255,255,0.85);
  font: 14px Tahoma, Arial, sans-serif; color: #4a5568;
}

/* One lot */
.amd-auc-lot { display: flex; flex-wrap: wrap; gap: 12px; background: rgba(255,255,255,0.9); padding: 12px; box-sizing: border-box; }
.amd-auc-gal { flex: 1 1 520px; min-width: 0; }
.amd-auc-gal-main img { display: block; width: 100%; height: auto; }
.amd-auc-gal-thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.amd-auc-gal-thumbs img { width: 84px; height: 63px; object-fit: cover; cursor: pointer; }
.amd-auc-gal-thumbs img:hover { outline: 2px solid #aa0000; }
.amd-auc-gal-note { padding: 6px 2px; font: 11px Tahoma, Arial, sans-serif; color: #8a93a0; }
.amd-auc-lot-info { flex: 1 1 320px; min-width: 0; }
.amd-auc-lot-price { font: bold 24px Tahoma, Arial, sans-serif; color: #aa0000; margin-bottom: 10px; }
.amd-auc-lot-price i { font: normal 12px Tahoma, Arial, sans-serif; color: #8a93a0; display: block; }
.amd-auc-table td { font-size: 13px; }
.amd-auc-back { padding: 10px 2px; font: 13px Tahoma, Arial, sans-serif; }

@media (max-width: 1100px) { .amd-auc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .amd-auc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  {
  .amd-auc-grid { grid-template-columns: 1fr; }
  .amd-auc-sel, .amd-auc-text, .amd-auc-num { flex: 1 1 100%; width: auto; }
}

