/* =========================
   WCLA – GLOBAL / WRAPPERS
   ========================= */

.wcla-box{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  padding:16px;
  margin:14px auto;
  max-width:1100px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}

.wcla-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.wcla-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #ececec;
  background:#fafafa;
  border-radius:999px;
  font-size:13px;
  line-height:1.15;
}

.wcla-err{color:#b00020;margin:10px 0;font-weight:700}
.wcla-ok{color:#0a7d2a;margin:10px 0;font-weight:700}

/* JS warning/closed stílusok (wcla-frontend.js használja) */
.wcla-warning{
  background:#f0ad4e !important;
  border-color:#eea236 !important;
  color:#000 !important;
}

.wcla-warn{
  background:#fff3cd;
  border:1px solid #ffeeba;
  color:#856404;
  padding:8px 10px;
  border-radius:10px;
  font-weight:700;
}

/* =========================
   AUCTION LIST (wcla_auction)
   ========================= */

/* Theme UL pötty/margó OFF, mert nálad a UL sima <ul> */
.wcla-box.wcla-lots ul{
  list-style:none !important;
  padding-left:0 !important;
  margin:14px 0 0 0 !important;
}
.wcla-box.wcla-lots ul > li{
  list-style:none !important;
  margin:0 0 14px 0 !important;
  padding:0 !important;
}

/* Filter bar */
.wcla-box.wcla-lots form.wcla-row{
  padding:10px 12px;
  background:#fbfbfb;
  border:1px solid #eee;
  border-radius:12px;
}
.wcla-box.wcla-lots label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
}
.wcla-box.wcla-lots select,
.wcla-box.wcla-lots input[type="text"],
.wcla-box.wcla-lots input[type="number"]{
  border:1px solid #ddd;
  border-radius:10px;
  padding:7px 10px;
  height:38px;
  background:#fff;
}

/* Kártya */
.wcla-card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:14px;
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.wcla-card__img{position:relative}
.wcla-card__img img{
  width:160px;
  height:160px;
  border-radius:14px;
  border:1px solid #eee;
  background:#fff;
  object-fit:contain; /* bélyeg/termék fotónál jobb, ne vágjon */
  display:block;
}

.wcla-card__badge{
  position:absolute;
  left:10px;
  top:10px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  letter-spacing:.3px;
}

.wcla-badge-closed{
  background:#e8f5e9;
  border:1px solid #2e7d32;
  color:#1b5e20;
}

.wcla-card__body{min-width:0}

.wcla-card__title{
  display:inline-block;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  color:inherit;
  word-break:break-word;
}
.wcla-card__title:hover{ text-decoration:underline; }

.wcla-card__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

.wcla-card__prices{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Actions */
.wcla-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.wcla-card__actions .button{
  border-radius:10px !important;
}

/* Fő “Kép nagyítás” gomb */
.wcla-btn-view{
  border-radius:10px !important;
  padding:9px 12px !important;
  border:1px solid #111 !important;
  background:#111 !important;
  color:#fff !important;
  font-weight:800 !important;
}
.wcla-btn-view:hover{ opacity:.92; }

/* Galéria thumbs */
.wcla-card__g{
  display:flex;
  align-items:center;
  gap:8px;
}
.wcla-gthumb{
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #eee;
  cursor:pointer;
  background:#fff;
}
.wcla-gthumb:hover{
  transform:translateY(-1px);
}
.wcla-gmore{
  font-size:12px;
  color:#666;
  user-select:none;
}

@media (max-width:768px){
  .wcla-card{ grid-template-columns:1fr; }
  .wcla-card__img img{ width:100%; height:240px; }
}

/* =========================
   LIGHTBOX / MODAL (wcla_auction)
   ========================= */

#wcla-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:18px;
}

#wcla-modal .wcla-modal-box{
  background:#fff;
  max-width:980px;
  width:100%;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
}

#wcla-modal .wcla-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid #eee;
}

#wcla-modal .wcla-modal-title{
  font-weight:800;
  font-size:14px;
}

#wcla-modal .wcla-modal-close{
  cursor:pointer;
  border:0;
  background:#f2f2f2;
  border-radius:12px;
  padding:8px 10px;
  font-weight:800;
}

#wcla-modal .wcla-modal-body{
  display:grid;
  grid-template-columns:1fr 340px;
}

#wcla-modal .wcla-modal-img{
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

#wcla-modal .wcla-modal-img img{
  max-width:100%;
  max-height:72vh;
  object-fit:contain;
}

#wcla-modal .wcla-modal-side{
  padding:12px 14px;
  max-height:72vh;
  overflow:auto;
}

#wcla-modal .wcla-modal-desc{
  color:#333;
  font-size:14px;
  line-height:1.5;
  white-space:pre-wrap;
}

@media (max-width:900px){
  #wcla-modal .wcla-modal-body{ grid-template-columns:1fr; }
  #wcla-modal .wcla-modal-side{ border-top:1px solid #eee; }
}

/* =========================
   LOT PAGE (wcla_lot)
   ========================= */

#wcla-history p{ margin:8px 0; }
#wcla-msg .wcla-err, #wcla-msg .wcla-ok{ margin:10px 0; }

/* =========================
   LIVE VIEW (wcla_live)
   ========================= */

.wcla-live-item{
  display:flex;
  gap:12px;
  align-items:center;
  margin:10px 0 2px 0;
}
.wcla-live-item #wcla-live-thumb{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #e5e5e5;
  display:block;
  background:#fff;
}
.wcla-live-item__title{
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}

/* =========================
   LIVE – OLVASHATÓSÁG / HIERARCHIA
   Cél: Időzítő + Aktuális ár legyen a fókusz, a többi halkabb.
   Csak a #wcla-live felső stat sorra hat.
   ========================= */

/* A live stat sor (Tétel/Mód/Státusz/Idő/Aktuális/Köv.) rácsban, ne "pill dzsungel" */
#wcla-live > .wcla-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

/* A 2. sorban a 2 nagy érték legyen szélesebb */
#wcla-live > .wcla-row > .wcla-pill:nth-child(5),
#wcla-live > .wcla-row > .wcla-pill:nth-child(6){
  grid-column: span 2;
}

/* Stat pill-ek finomabbak */
#wcla-live > .wcla-row > .wcla-pill{
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  font-size:12px;
  line-height:1.15;
}

/* Kulcs értékek (ID-k) – nagyobb, jobban olvasható */
#wcla-live-timer{
  font-size:20px;
  font-weight:900;
  letter-spacing:.2px;
}

#wcla-live-current{
  font-size:26px;
  font-weight:950;
  letter-spacing:.3px;
  color:#2f4f45;
}

#wcla-live-next{
  font-size:20px;
  font-weight:900;
  color:#2f4f45;
}

/* A kevésbé fontos mezők halkabbak */
#wcla-live-lotnum,
#wcla-live-mode,
#wcla-live-status{
  font-weight:900;
}

/* Mobil: 2 oszlop, a két nagy érték 2 oszlop széles */
@media (max-width:768px){
  #wcla-live > .wcla-row{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  #wcla-live > .wcla-row > .wcla-pill:nth-child(5),
  #wcla-live > .wcla-row > .wcla-pill:nth-child(6){
    grid-column: 1 / -1;
  }
  #wcla-live-current{ font-size:24px; }
  #wcla-live-timer{ font-size:18px; }
}

.wcla-live-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  max-width:720px;
}
.wcla-live-buttons .wcla-live-btn{
  padding:14px 10px;
  font-size:16px;
  border-radius:14px;
  font-weight:800;
}

@media (max-width:768px){
  .wcla-live-buttons{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wcla-live-buttons .wcla-live-btn[data-idx='6'],
  .wcla-live-buttons .wcla-live-btn[data-idx='7'],
  .wcla-live-buttons .wcla-live-btn[data-idx='8']{ display:none; }
}

/* LIVE phase states (wcla-live.js adja a class-t a wrapperre) */
.wcla-phase-warning .wcla-live-btn{
  background:#f0ad4e !important;
  border-color:#eea236 !important;
  color:#000 !important;
}
.wcla-phase-warning .wcla-phase-msg{
  background:#fff3cd;
  border:1px solid #ffeeba;
  color:#856404;
  padding:8px 10px;
  border-radius:10px;
  margin:10px 0;
  font-weight:800;
}
.wcla-phase-closed .wcla-live-btn{
  background:#e5e5e5 !important;
  border-color:#ccc !important;
  color:#777 !important;
  pointer-events:none;
}
.wcla-phase-closed .wcla-phase-msg{
  background:#f8d7da;
  border:1px solid #f5c6cb;
  color:#721c24;
  padding:8px 10px;
  border-radius:10px;
  margin:10px 0;
  font-weight:900;
}

/* =========================
   LIVE PHASE – BRAND OVERRIDE GUARD
   A body.wcla-brand globális gomb-színezés (plugin inline CSS) magasabb specifikussága
   felülírhatja a warning/closed szakasz színeit. Itt direkt, még specifikusabb szabályokkal
   visszaadjuk a sárga (warning) és piros (lezárás) állapotot.
   Pasztell / földszínek.
   ========================= */

body.wcla-brand #wcla-live.wcla-box.wcla-phase-warning .wcla-live-btn,
body.wcla-brand .wcla-box#wcla-live.wcla-phase-warning .wcla-live-btn{
  background:#E3C27A !important; /* pasztell sárga */
  border-color:#D6B46A !important;
  color:#1f1f1f !important;
}
body.wcla-brand #wcla-live.wcla-box.wcla-phase-warning .wcla-phase-msg,
body.wcla-brand .wcla-box#wcla-live.wcla-phase-warning .wcla-phase-msg{
  background:#F6E8C8 !important;
  border-color:#EAD7AE !important;
  color:#5a4a22 !important;
}

body.wcla-brand #wcla-live.wcla-box.wcla-phase-closed .wcla-live-btn,
body.wcla-brand .wcla-box#wcla-live.wcla-phase-closed .wcla-live-btn{
  background:#E7B3B3 !important; /* pasztell piros */
  border-color:#D99A9A !important;
  color:#1f1f1f !important;
  pointer-events:none;
}
body.wcla-brand #wcla-live.wcla-box.wcla-phase-closed .wcla-phase-msg,
body.wcla-brand .wcla-box#wcla-live.wcla-phase-closed .wcla-phase-msg{
  background:#F4D6D6 !important;
  border-color:#E9BFBF !important;
  color:#6b1e1e !important;
}

/* =========================
   LIVE UPCOMING (következő tételek)
   ========================= */

.wcla-upcoming{ margin-top:18px; }
.wcla-upcoming__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px 0;
}
.wcla-upcoming__title{ font-weight:900; font-size:16px; }
.wcla-upcoming__hint{ font-size:12px; color:#666; }

.wcla-upcoming__empty{ color:#666; font-size:14px; padding:8px 0; }

.wcla-upcoming__list{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 2px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
}

.wcla-upcoming__item{
  flex:0 0 280px;
  display:flex;
  gap:10px;
  padding:10px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  scroll-snap-align:start;
}

.wcla-upcoming__img{
  width:58px;
  height:58px;
  border-radius:14px;
  border:1px solid #eee;
  background:#fff;
  object-fit:cover;
  flex:0 0 auto;
}

.wcla-upcoming__img--ph{
  background:linear-gradient(135deg,#f3f3f3,#e9e9e9);
}

.wcla-upcoming__meta{ min-width:0; }
.wcla-upcoming__lot{ font-weight:900; font-size:13px; margin:1px 0 4px 0; }
.wcla-upcoming__name{ font-weight:700; font-size:14px; line-height:1.25; word-break:break-word; }

@media (max-width:768px){
  .wcla-upcoming__item{ flex-basis:240px; }
  .wcla-upcoming__img{ width:50px; height:50px; border-radius:12px; }
}

/* =========================
   SMALL POLISH
   ========================= */
.wcla-box p{ margin:10px 0; }

/* =========================
   SZÜNET banner (nagy kijelzés)
   ========================= */
.wcla-live-break{
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  font-size: 18px;
  line-height: 1.35;
}
.wcla-live-break .wcla-live-break__title{
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 6px;
}
.wcla-live-break .wcla-live-break__sub{
  font-size: 16px;
  opacity: .85;
}

@media (max-width:768px){
  /* mobilon kisebb, de ettől még látszik */
  .wcla-live-break{ font-size:16px; padding:14px 14px; border-radius:16px; }
  .wcla-live-break .wcla-live-break__title{ font-size:20px; }
}



/* ===== SZÜNET overlay (nagy ablak) ===== */
#wcla-live-break{ position: relative; z-index: 99999; }

.wcla-break-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.wcla-break-box{
  width: min(920px, 96vw);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(0,0,0,0.35);
  padding: 22px 22px 18px;
  text-align:center;
}

.wcla-break-title{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 10px 0;
}

.wcla-break-text{
  font-size: 20px;
  line-height: 1.35;
  margin: 0 auto 16px;
  max-width: 780px;
  white-space: pre-wrap;
}

.wcla-break-countdown{
  margin-top: 6px;
}

.wcla-break-mmss{
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
}

.wcla-break-last10{
  font-size: 22px;
  margin-top: 6px;
}

@media (max-width: 520px){
  .wcla-break-title{ font-size: 34px; }
  .wcla-break-mmss{ font-size: 56px; }
  .wcla-break-text{ font-size: 18px; }
}
