/* Winter Sale: the auction card under a strip of fair-isle knitting, its
   price on a woven wool label with a running stitch round the edge.
   Builds on the plugin's own card styles. */
@import url("../../../components/auction_card.css");

.ed-card-auction, html.dark .ed-card-auction {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ed-card-auction:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ed-card-auction::before, html.dark .ed-card-auction::before {
  top: 0; left: 0; right: 0; height: 15px; border-radius: 0; z-index: 2;
  background: var(--knit-slim);
}
.ed-card-auction.auction-ended-winner::before { background: var(--knit-slim); filter: saturate(.5); }
.ed-card-auction .ed-folio { color: var(--theme-600); }

/* The price row: a cream woven label, stitched round its edge */
.ed-card-auction .flex.items-end.justify-between.border-t {
  position: relative;
  margin: 0 -.25rem; padding: .85rem 1rem .8rem;
  background: #f7f0e3;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .45);
}
.ed-card-auction .flex.items-end.justify-between.border-t::before {
  content: ''; position: absolute; inset: 4px; pointer-events: none;
  border: 1.5px dashed rgba(184, 50, 60, .5); border-radius: 5px;
}
.ed-card-auction .flex.items-end.justify-between.border-t * { color: #34465c !important; }
.ed-card-auction .auction-current-bid,
.ed-card-auction .font-display.text-2xl { font-family: var(--font-display); font-stretch: var(--display-stretch, 82%); font-weight: 800 !important; font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: #b8323c !important; overflow-wrap: normal; }

.ed-card-auction .info-btn { border: 1px solid var(--rule) !important; color: var(--ink) !important; border-radius: 999px !important; }
.ed-card-auction .info-btn:hover { border-color: var(--theme-500) !important; color: var(--theme-600) !important; }

/* The info button fills with ink on hover; its icon takes the paper colour
   with it instead of keeping the ink it has at rest. */
.ed-card-auction .info-btn:hover,
.ed-card-auction .info-btn:hover :is(svg, i) { color: var(--paper) !important; }
