/* =========================
   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:grid;
  grid-template-columns:minmax(200px, 340px) 1fr;
  gap:18px;
  align-items:start;
  margin:12px 0 6px 0;
}
.wcla-live-item #wcla-live-thumb{
  width:100%;
  min-height:240px;
  max-height:420px;
  object-fit:contain;
  border-radius:18px;
  border:1px solid #e5e5e5;
  display:block;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}
.wcla-live-item__meta{
  min-width:0;
  align-self:center;
}
.wcla-live-item__title{
  font-size:26px;
  font-weight:900;
  line-height:1.15;
}
.wcla-live-item__quality{
  font-size:15px !important;
}
@media (max-width:900px){
  .wcla-live-item{ grid-template-columns:1fr; }
  .wcla-live-item #wcla-live-thumb{ min-height:220px; max-height:360px; }
}

/* =========================
   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; }
}


/* Live actions layout: buttons + saját ajánlatok (jobb oldalt) */
.wcla-live-actions{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.wcla-live-actions__left{ flex: 1 1 auto; min-width: 0; }
.wcla-live-actions__right{ flex: 0 0 280px; }

@media (max-width:768px){
  .wcla-live-actions{ flex-direction:column; }
  .wcla-live-actions__right{ flex-basis:auto; width:100%; }
}

.wcla-ownbids{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,0.65);
}
.wcla-ownbids__title{
  font-weight:900;
  margin-bottom:8px;
}
.wcla-ownbids__empty{ opacity:0.8; }
.wcla-ownbids__list{ display:flex; flex-direction:column; gap:8px; }
.wcla-ownbids__row{ display:flex; justify-content:space-between; gap:10px; }
.wcla-ownbids__amt{ font-weight:900; }
.wcla-ownbids__meta{ opacity:0.8; font-size:12px; white-space:nowrap; }
.wcla-live-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  width:100%;
}
.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; }
}

/* ===== AUKCIÓ VÉGE overlay (nagy ablak) ===== */
#wcla-live-ended{ position: relative; z-index: 99998; }

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

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

.wcla-ended-close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}
.wcla-ended-close:hover{ background: rgba(0,0,0,0.06); }

.wcla-ended-title{
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
}

.wcla-ended-text{
  font-size: 22px;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 780px;
}

@media (max-width: 520px){
  .wcla-ended-title{ font-size: 32px; }
  .wcla-ended-text{ font-size: 18px; }
}


/* ===== WCLA Lightbox (képnagyítás galériával) ===== */
.wcla-lb{position:fixed;inset:0;z-index:999999;display:none;}
.wcla-lb.is-open{display:block;}
.wcla-lb__bg{position:absolute;inset:0;background:rgba(0,0,0,0.92);}
.wcla-lb__ui{position:absolute;inset:0;display:flex;flex-direction:column;}
.wcla-lb__top{display:flex;gap:10px;align-items:center;justify-content:flex-end;padding:12px;}
.wcla-lb__btn{border:0;background:rgba(255,255,255,0.10);color:#fff;font-size:18px;line-height:1;cursor:pointer;padding:10px 12px;border-radius:12px;}
.wcla-lb__btn:hover{background:rgba(255,255,255,0.18);}
.wcla-lb__mid{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;}
.wcla-lb__nav{border:0;background:rgba(255,255,255,0.10);color:#fff;font-size:28px;cursor:pointer;padding:14px 16px;border-radius:14px;}
.wcla-lb__nav:hover{background:rgba(255,255,255,0.18);}
.wcla-lb__stage{position:relative;max-width:96vw;max-height:82vh;overflow:hidden;touch-action:none;}
.wcla-lb__img{max-width:96vw;max-height:82vh;transform-origin:center center;cursor:grab;user-select:none;-webkit-user-drag:none;}
.wcla-lb__img:active{cursor:grabbing;}
.wcla-lb__caption{color:#fff;opacity:0.85;font-size:14px;text-align:center;padding:6px 14px 14px;}
@media (max-width:520px){
  .wcla-lb__nav{font-size:22px;padding:12px 14px;}
}


/* fix04 – erősebb túllicitálás jelzés */
#wcla-live-leadstate{ position:relative; }
#wcla-live-leadstate .wcla-ok--strong,
#wcla-live-leadstate .wcla-err--strong{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  font-weight:900;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}
#wcla-live-leadstate .wcla-ok--strong{ background:#e8f5e9; color:#1b5e20; }
#wcla-live-leadstate .wcla-err--strong{ background:#ffebee; color:#b71c1c; }
#wcla-live-leadstate.wcla-outbid-flash,
#wcla-live-leadstate .wcla-outbid-flash{ animation:wclaOutbidFlash .42s ease 3; }
@keyframes wclaOutbidFlash{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.06); }
  100%{ transform:scale(1); }
}


/* fix06 – hangjelzés és mobil UX */
.wcla-sound-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:6px 0 10px;
  padding:10px 12px;
  border-radius:12px;
  background:#eef5ff;
  color:#123;
  border:1px solid rgba(21,101,192,.12);
}
.wcla-sound-controls.is-on{ background:#e8f5e9; border-color:rgba(27,94,32,.18); }
.wcla-sound-controls.is-off{ background:#fafafa; border-color:rgba(0,0,0,.08); }
.wcla-sound-controls__label{ font-weight:700; }
.wcla-lb__footer{ padding:4px 14px 14px; }
.wcla-lb__counter{ color:#fff; opacity:.92; font-size:13px; text-align:center; margin-bottom:4px; }
#wcla-live-bid .button,
#wcla-live-bid button,
#wcla-live-next .button,
#wcla-live-upcoming .button{ min-height:44px; }
@media (max-width: 768px){
  #wcla-live-grid{ gap:16px; }
  #wcla-live-mainimg img,
  #wcla-live-mainimg .woocommerce-product-gallery__image img{ width:100%; height:auto; }
  #wcla-live-bid .button,
  #wcla-live-bid button{ width:100%; }
  .wcla-sound-controls{ padding:10px; }
  .wcla-sound-controls .button{ flex:1 1 auto; min-height:42px; }
  .wcla-lb__mid{ padding:8px; gap:6px; }
  .wcla-lb__stage{ max-width:100vw; max-height:74vh; }
  .wcla-lb__img{ max-width:100vw; max-height:74vh; }
  .wcla-lb__nav{ padding:10px 12px; border-radius:12px; }
}
