/* ===============================
   RESET / BASE
================================ */
.nftix-public-event{
  margin:0;
  padding:0;
}

body.nftix-public-event-body{
  margin:0;
  padding:0;
}

label{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  display:block;
}

/* ===============================
   HERO
================================ */
.nftix-hero{
  position:relative;
  width:100%;
  height:300px;
  background-size:cover;
  background-position:center;
  margin:0;
  padding:0;
  overflow:hidden;
}

/* FULL IMAGE OVERLAY */
.nftix-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:1;
}

/* CONTENT LAYER */
.nftix-hero__overlay{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 20px;
}

/* TITLE */
.nftix-hero__title{
  margin:0;
  font-weight:900;
  font-size:clamp(36px,5vw,62px);
  line-height:1.05;
  color:#fff;
}

/* META */
.nftix-hero__meta{
  margin-top:12px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  color:#fff;
  font-size:18px;
}

.nftix-meta__item{
  display:flex;
  align-items:center;
  gap:8px;
}

.nftix-ico{
  display:inline-flex;
  color:#fff;
  opacity:.95;
}

/* ===============================
   COUNTDOWN (1.5× SCALE)
================================ */
.nftix-countdown{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  color:#fff;
  font-size:33px;
  font-weight:400;
}

.nftix-cbox{
  width:96px;
  height:96px;
  border:1px dashed rgba(255,255,255,.85);
  border-radius:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.nftix-cnum{
  font-size:33px;
  font-weight:600;
  line-height:1;
}

.nftix-clab{
  font-size:16px;
  margin-top:8px;
  opacity:.9;
  text-transform:lowercase;
}

.nftix-csep{
  font-size:39px;
  font-weight:800;
  margin-top:-14px;
}

/* ===============================
   CONTENT
================================ */
.nftix-content{
  margin:18px auto 60px;
  padding:0 16px;
}

.nftix-teaser{
  margin:10px 0 18px;
  font-size:16px;
}

.nftix-section{
  margin-top:26px;
}

.nftix-h2{
  margin:0 0 10px;
  font-size:22px;
  font-weight:900;
}

.nftix-body{
  font-size:15px;
  line-height:1.5;
}

/* ===============================
   DRAFT FLAG
================================ */
.nftix-draft-flag{
  display:inline-block;
  padding:6px 10px;
  border:1px dashed rgba(0,0,0,.25);
  border-radius:10px;
  margin:10px 0 12px;
  font-size:.9em;
}

/* ===============================
   TICKET TABLE
================================ */
.nftix-ticket-table-wrap{
  margin-top:10px;
}

.nftix-ticket-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}

.nftix-ticket-table th,
.nftix-ticket-table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
  vertical-align:middle;
}

.nftix-ticket-table th{
  font-weight:800;
  text-align:left;
}

.nftix-center{
  text-align:center !important;
}

.nftix-qtycol{
  width:1%;
  white-space:nowrap;
}

.nftix-ttitle{
  font-weight:800;
}

.nftix-tdesc{
  font-size:12px;
  opacity:.8;
  margin-top:4px;
}

/* ===============================
   QTY CONTROLS
================================ */
.nftix-qty{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:140px;
  justify-content:center;
}

.nftix-qtybtn{
  width:34px;
  height:34px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  background:#fff;
  font-size:18px;
  cursor:pointer;
}

.nftix-qtyinp{
  width:52px;
  height:34px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  text-align:center;
  font-size:15px;
}

.nftix-qtybtn:active{
  transform:translateY(1px);
}

/* ===============================
   DIVIDER
================================ */
.nftix-divider-row td{
  padding:0;
}

.nftix-divider{
  border:0;
  border-top:1px solid rgba(0,0,0,.12);
  margin:10px 0;
}

/* ===============================
   EXTRA TIER ROW
================================ */
.nftix-tier-extra td{
  padding-top:0;
  font-size:.95em;
  opacity:.95;
}

/* ===============================
   ORDER FEES
================================ */
.nftix-orderfees{
  margin:14px 0 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:10px;
}

.nftix-orderfee-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 2px;
  font-size:13px;
}

/* ===============================
   BUY BUTTON ROW (IN TABLE)
================================ */
.nftix-buy-row-table td{
  border-bottom:0;
}

.nftix-buy{
  width:140px;
  border:0;
  border-radius:14px;
  padding:14px 16px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}

.nftix-buy:hover{
  filter:brightness(1.03);
}

.nftix-buy:active{
  transform:translateY(1px);
}

/* ===============================
   MESSAGES
================================ */
.nftix-msg{
  margin:10px 0;
  font-size:14px;
  opacity:.85;
}

.nftix-msg--error{
  color:#b00020;
  opacity:1;
}
.nftix-clear-cart-link {
  color: #1d4ed8;
  text-decoration: underline;
  margin-left: 6px;
}

/* ===============================
   PRESENTED BY
================================ */
.nftix-presented{
  display:flex;
  align-items:center;
  gap:12px;
}

.nftix-presented__logo{
  width:40px;
  height:40px;
  border-radius:10px;
  object-fit:cover;
}

.nftix-presented__name{
  font-weight:800;
}

/* ===============================
   MAP
================================ */
.nftix-map{
  margin-top:12px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}

.nftix-map iframe{
  width:100%;
  height:260px;
  border:0;
}

/* ===============================
   MOBILE
================================ */
@media (max-width:600px){
  .nftix-hero__meta{
    font-size:16px;
  }

  .nftix-cbox{
    width:84px;
    height:84px;
  }

  .nftix-cnum{
    font-size:30px;
  }

  .nftix-clab{
    font-size:15px;
  }

  .nftix-csep{
    font-size:36px;
  }
}
/* tighten countdown boxes */
.nftix-cbox{
  padding:10px 8px;           /* control box size directly */
  width:auto;
  height:auto;
  min-width:70px;
  min-height:70px;
}

/* remove spacing between number + label */
.nftix-cnum{
  line-height:1;
  margin:0;
}

.nftix-clab{
  margin-top:2px;             /* was 8px */
  line-height:1;
}

/* pull separators into alignment */
.nftix-csep{
  margin-top:0;               /* remove vertical offset */
  line-height:1;
}
.nftix-buy:disabled{
  opacity:.5;
  cursor:not-allowed;
  filter:grayscale(0.3);
  border:1px solid;
}
.nftix-debug-row {
  margin:20px auto;
  border:1px dashed #b45309;
  border-radius:14px;
  padding:12px 14px;
  background:#fef3c7;
  color:#92400e;
  font-size:0.95rem;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  width:100%;
  max-width:calc(100% - 32px);
  box-sizing:border-box;
  justify-content:center;
}

.nftix-private-page { margin:0;background:#f8fafc;color:#111827;font-family:system-ui,sans-serif; }
.nftix-private-card { box-sizing:border-box;max-width:480px;margin:8vh auto;padding:28px;background:white;border:1px solid #d1d5db;border-radius:16px; }
.nftix-private-card form { display:grid;gap:12px; }
.nftix-private-card input { box-sizing:border-box;min-width:0;width:100%;font:inherit;padding:12px;border:1px solid #9ca3af;border-radius:12px; }
.nftix-private-card button { font:inherit;font-weight:600;min-height:48px;border:0;border-radius:12px;background:#2563eb;color:white;cursor:pointer; }
.nftix-private-card [role=alert] { color:#b91c1c; }
@media(max-width:520px) { .nftix-private-card { margin:24px 16px; } }

/* Public event details use the same card treatment. */
.nftix-content .nftix-info-box {border:1px solid rgba(0,0,0,.12);border-radius:0 0 14px 14px;padding:20px;margin:0 0 20px;}
.nftix-content .nftix-info-heading {margin:0;background-color:#f4f4f4;padding:12px 12px 10px 14px;border-radius:14px 14px 0 0;border:1px solid #ddd;}
.nftix-ticket-table tr.nftix-orderfees-row>td,.nftix-ticket-table tr.nftix-buy-row-table>td {border:0;}
.nftix-ticket-table tr:has(+ .nftix-orderfees-row)>td {border-bottom:0;}
.nftix-ticket-table-wrap {max-width:100%;overflow-x:auto;}
@media(max-width:640px){
  .nftix-public-event .nftix-countdown {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:6px;}
  .nftix-public-event .nftix-countdown .nftix-csep {display:none;}
  .nftix-public-event .nftix-countdown .nftix-cbox {min-width:0;width:auto;padding:10px 3px;}
  .nftix-public-event .nftix-countdown .nftix-cnum {font-size:clamp(18px,5vw,28px);}
  .nftix-public-event .nftix-countdown .nftix-clab {font-size:11px;}
}

.nftix-public-event .nftix-hero__meta a {color:inherit;text-underline-offset:3px;}
.nftix-public-event .nftix-hero__overlay,.nftix-public-event .nftix-countdown,.nftix-public-event .nftix-cbox {box-sizing:border-box;}
.nftix-public-event .nftix-hero__title {max-width:100%;overflow-wrap:anywhere;}

/* Every ticket type has a separator, including the only/last type. */
.nftix-tickets-box .nftix-ticket-table .nftix-tier-row>td,
.nftix-tickets-box .nftix-ticket-table .nftix-tier-extra>td{border-bottom:1px solid #dfe3eb;}

.nftix-public-event .nftix-countdown[hidden]{display:none!important;}
