/* =============================================================================
   AA-CHAPEL — UCO-Auctions / Bidspirit override sheet
   Scoped under .aa-auction-shell (added via the_content filter in functions.php)
   so these rules ONLY apply within auction templates and never bleed into
   editorial pages.

   The scoped !important is a deliberate trade-off: the UCO plugin ships
   inline + plugin-level styles which are difficult to outweigh with normal
   specificity. Keeping !important confined to .aa-auction-shell prevents
   any leakage.

   NB: selector list is the union of UCO's known classes plus generic patterns.
   On day 1 of going live, inspect the rendered DOM (DevTools) and prune
   selectors that don't exist + add any that do.
   ============================================================================= */

.aa-chapel .aa-auction-shell {
  font-family: var(--aa-font-body);
  color: var(--aa-ink);
  background: var(--aa-stone-100);
}

/* ---------- Headings inside the auction shell ---------- */

.aa-chapel .aa-auction-shell h1,
.aa-chapel .aa-auction-shell h2,
.aa-chapel .aa-auction-shell h3,
.aa-chapel .aa-auction-shell h4,
.aa-chapel .aa-auction-shell .lot-title,
.aa-chapel .aa-auction-shell .lot__title,
.aa-chapel .aa-auction-shell .auction-title,
.aa-chapel .aa-auction-shell .bidspirit-title {
  font-family: var(--aa-font-display) !important;
  font-weight: 500 !important;
  color: var(--aa-navy-700) !important;
  letter-spacing: -0.005em;
}

/* ---------- Buttons (bid, register, browse, login) ---------- */

.aa-chapel .aa-auction-shell button,
.aa-chapel .aa-auction-shell .btn,
.aa-chapel .aa-auction-shell .button,
.aa-chapel .aa-auction-shell input[type="submit"],
.aa-chapel .aa-auction-shell .bp-btn,
.aa-chapel .aa-auction-shell .bp-button,
.aa-chapel .aa-auction-shell .bp-bid-btn,
.aa-chapel .aa-auction-shell .bidspirit-btn,
.aa-chapel .aa-auction-shell .bidspirit-bid-button,
.aa-chapel .aa-auction-shell .uco-btn,
.aa-chapel .aa-auction-shell .uco-button,
.aa-chapel .aa-auction-shell .auction-btn,
.aa-chapel .aa-auction-shell .lot__btn-bid {
  background: var(--aa-brass-500) !important;
  color: var(--aa-navy-900) !important;
  border: 1px solid var(--aa-brass-500) !important;
  border-radius: var(--aa-radius) !important;
  padding: 0.7rem 1.25rem !important;
  font-family: var(--aa-font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background-color var(--aa-dur) var(--aa-ease),
              color           var(--aa-dur) var(--aa-ease) !important;
  text-decoration: none !important;
}
.aa-chapel .aa-auction-shell button:hover,
.aa-chapel .aa-auction-shell .btn:hover,
.aa-chapel .aa-auction-shell .button:hover,
.aa-chapel .aa-auction-shell input[type="submit"]:hover,
.aa-chapel .aa-auction-shell .bp-btn:hover,
.aa-chapel .aa-auction-shell .bp-button:hover,
.aa-chapel .aa-auction-shell .bidspirit-btn:hover,
.aa-chapel .aa-auction-shell .uco-btn:hover,
.aa-chapel .aa-auction-shell .uco-button:hover {
  background: var(--aa-brass-400) !important;
}

/* Secondary / ghost buttons within the shell */
.aa-chapel .aa-auction-shell .btn-secondary,
.aa-chapel .aa-auction-shell .button-secondary,
.aa-chapel .aa-auction-shell .bp-btn-secondary,
.aa-chapel .aa-auction-shell .uco-btn-secondary {
  background: transparent !important;
  color: var(--aa-navy-700) !important;
  border: 1px solid var(--aa-navy-700) !important;
}

/* ---------- Lot cards ---------- */

.aa-chapel .aa-auction-shell .lot,
.aa-chapel .aa-auction-shell .lot-card,
.aa-chapel .aa-auction-shell .lot__card,
.aa-chapel .aa-auction-shell .auction-lot,
.aa-chapel .aa-auction-shell .bp-lot,
.aa-chapel .aa-auction-shell .uco-lot,
.aa-chapel .aa-auction-shell article.lot {
  background: var(--aa-stone-50) !important;
  border: 1px solid var(--aa-stone-200) !important;
  border-radius: var(--aa-radius-soft) !important;
  padding: 1rem !important;
  transition: border-color var(--aa-dur) var(--aa-ease),
              box-shadow   var(--aa-dur) var(--aa-ease) !important;
  box-shadow: var(--aa-shadow-sm);
}
.aa-chapel .aa-auction-shell .lot:hover,
.aa-chapel .aa-auction-shell .lot-card:hover,
.aa-chapel .aa-auction-shell .auction-lot:hover {
  border-color: var(--aa-brass-500) !important;
  box-shadow: var(--aa-shadow-md);
}

/* Lot image — soft arch frame, evokes chapel windows */
.aa-chapel .aa-auction-shell .lot img,
.aa-chapel .aa-auction-shell .lot-card img,
.aa-chapel .aa-auction-shell .auction-lot img,
.aa-chapel .aa-auction-shell .lot__image,
.aa-chapel .aa-auction-shell .uco-lot__img {
  border-top-left-radius:  50% 18% !important;
  border-top-right-radius: 50% 18% !important;
  overflow: hidden;
}

/* ---------- Lot meta — prices, estimates, lot numbers ---------- */

.aa-chapel .aa-auction-shell .price,
.aa-chapel .aa-auction-shell .estimate,
.aa-chapel .aa-auction-shell .hammer,
.aa-chapel .aa-auction-shell .lot-number,
.aa-chapel .aa-auction-shell .lot__price,
.aa-chapel .aa-auction-shell .lot__estimate,
.aa-chapel .aa-auction-shell .uco-lot__price {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
  color: var(--aa-navy-700);
  font-weight: 600;
}

/* ---------- Live / status indicators ---------- */

.aa-chapel .aa-auction-shell .is-live,
.aa-chapel .aa-auction-shell .live,
.aa-chapel .aa-auction-shell .status-live,
.aa-chapel .aa-auction-shell .lot__status--live,
.aa-chapel .aa-auction-shell .uco-live {
  background: var(--aa-live) !important;
  color: var(--aa-stone-50) !important;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.aa-chapel .aa-auction-shell .ending-soon,
.aa-chapel .aa-auction-shell .status-ending {
  background: var(--aa-warn) !important;
  color: var(--aa-navy-900) !important;
}

/* ---------- Pagination & filters ---------- */

.aa-chapel .aa-auction-shell .pagination a,
.aa-chapel .aa-auction-shell .page-numbers,
.aa-chapel .aa-auction-shell .uco-pagination a {
  background: var(--aa-stone-50) !important;
  border: 1px solid var(--aa-stone-200) !important;
  color: var(--aa-navy-700) !important;
  border-radius: var(--aa-radius);
}
.aa-chapel .aa-auction-shell .pagination a:hover,
.aa-chapel .aa-auction-shell .page-numbers:hover,
.aa-chapel .aa-auction-shell .page-numbers.current {
  background: var(--aa-brass-500) !important;
  color: var(--aa-navy-900) !important;
  border-color: var(--aa-brass-500) !important;
}

/* ---------- Modals (login, register, bid confirm) ---------- */

.aa-chapel .aa-auction-shell .modal,
.aa-chapel .modal-content,
.aa-chapel .micromodal__container,
body.aa-chapel .modal {
  background: var(--aa-stone-50) !important;
  color: var(--aa-ink) !important;
  border-radius: var(--aa-radius-soft);
  border: 1px solid var(--aa-stone-200);
}
.aa-chapel .modal h2,
.aa-chapel .micromodal__title {
  font-family: var(--aa-font-display) !important;
  color: var(--aa-navy-700) !important;
}

/* ---------- Tables (bid history, results) ---------- */

.aa-chapel .aa-auction-shell table {
  width: 100%;
  border-collapse: collapse;
  font-feature-settings: "tnum";
}
.aa-chapel .aa-auction-shell th {
  background: var(--aa-navy-700) !important;
  color: var(--aa-stone-50) !important;
  font-family: var(--aa-font-body);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aa-chapel .aa-auction-shell td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--aa-stone-200);
}
.aa-chapel .aa-auction-shell tr:hover td {
  background: var(--aa-stone-100);
}

/* ---------- Forms inside the shell (registration, bid input) ---------- */

.aa-chapel .aa-auction-shell input,
.aa-chapel .aa-auction-shell select,
.aa-chapel .aa-auction-shell textarea {
  background: var(--aa-paper) !important;
  border: 1px solid var(--aa-stone-200) !important;
  border-radius: var(--aa-radius) !important;
  padding: 0.7rem 0.9rem !important;
  color: var(--aa-ink) !important;
  font-family: var(--aa-font-body) !important;
}
.aa-chapel .aa-auction-shell input:focus,
.aa-chapel .aa-auction-shell select:focus,
.aa-chapel .aa-auction-shell textarea:focus {
  outline: none !important;
  border-color: var(--aa-brass-500) !important;
  box-shadow: 0 0 0 3px rgba(176,141,87,0.20) !important;
}

/* ---------- iframe — Bidspirit live bid window ---------- */

.aa-chapel .aa-auction-shell iframe {
  border: 1px solid var(--aa-stone-200) !important;
  border-radius: var(--aa-radius-soft);
  background: var(--aa-stone-50);
}
