/* Minimal modern styling for tickets subdomain pages */
:root{
  --bg:#FFF9F2;
  --card:#ffffff;
  --line:#F2E6DA;
  --ink:#3b2b27;
  --muted:#6b7280;
  --accent:#E34D2E;
  --sun:#F8C045;
  --touch:48px;
}

*, *::before, *::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

html,body{height:100%}
body.ose-body{
  background:var(--bg);
  color:var(--ink);
  font-size:17px;
  line-height:1.5;
  overflow-x:hidden;
  padding-left:env(safe-area-inset-left);
  padding-right:env(safe-area-inset-right);
  padding-bottom:env(safe-area-inset-bottom);
}

.ose-page{
  padding-top:max(1.25rem, env(safe-area-inset-top));
  width:100%;
  max-width:100%;
}

.ose-header-top{
  width:100%;
  overflow:hidden;
}

.ose-card-pad{
  padding:1.25rem;
}
@media (min-width:640px){
  .ose-card-pad{ padding:1.5rem; }
}

.ose-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.ose-chip{
  display:inline-flex; align-items:center; gap:.4rem;
  border:1px solid var(--line);
  border-radius:999px;
  padding:.1rem .55rem;
  font-size:14px;
  background:#fff;
}
.ose-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  border-radius:14px;
  padding:.75rem 1rem;
  min-height:var(--touch);
  font-size:16px;
  font-weight:700;
  border:1px solid var(--line);
  background:#fff;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.ose-btn.w-full,
.ose-pay-stack .ose-btn{
  width:100%;
}
.ose-btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.ose-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.ose-input{
  width:100%;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:.75rem .85rem;
  min-height:var(--touch);
  font-size:16px;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
}
.ose-muted{color:var(--muted)}
.ose-link{color:var(--accent); text-decoration:underline; text-underline-offset:2px}

.ose-ticket-grid{
  display:grid;
  gap:12px;
}
@media (min-width:640px){
  .ose-ticket-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

.ose-ticket-card{
  position:relative;
  background:linear-gradient(180deg, #fff 0%, #fffaf5 100%);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 12px 12px;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  overflow:hidden;
}
.ose-ticket-card::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background:linear-gradient(90deg, var(--accent), var(--sun));
}
.ose-ticket-card.is-active{
  border-color:#f0b9a8;
  box-shadow:0 8px 22px rgba(227,77,46,.12);
}
.ose-ticket-name{
  font-weight:800;
  font-size:17px;
  margin-top:6px;
}
.ose-ticket-price{
  font-size:26px;
  font-weight:800;
  color:var(--accent);
  margin:4px 0 6px;
}
.ose-ticket-desc{
  font-size:14px;
  line-height:1.35;
  color:var(--muted);
  min-height:2.7em;
  margin:0 4px 12px;
}
.ose-ticket-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.ose-qty-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:22px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  color:var(--accent);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.ose-qty-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.ose-qty-num{
  min-width:24px;
  font-weight:800;
  font-size:20px;
}
.ose-label{
  display:block;
  font-size:15px;
  font-weight:600;
  margin-bottom:6px;
}
.ose-label .req{ color:var(--accent); }
.ose-field{ margin-bottom:14px; }
.ose-select{
  width:100%;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:.75rem .85rem;
  min-height:var(--touch);
  font-size:16px;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .85rem center;
  padding-right:2.25rem;
}
.ose-total-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  border-top:1px solid var(--line);
  margin-top:8px;
}
.ose-pay-stack{ display:grid; gap:10px; width:100%; }
.ose-paypal-buttons{
  display:grid;
  gap:10px;
  width:100%;
  max-width:100%;
}
.ose-paypal-funding{
  min-height:45px;
  width:100%;
  max-width:100%;
}

.ose-step-hidden{
  display:none;
}
.ose-step-fade-in{
  animation:oseStepIn .5s ease both;
}
@keyframes oseStepIn{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

.ose-support{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.ose-support-text{
  font-size:15px;
  color:var(--muted);
  margin-bottom:10px;
  line-height:1.45;
}
.ose-support-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ose-support-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:.55rem .9rem;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  color:var(--ink);
  transition:transform .15s ease, box-shadow .15s ease;
}
.ose-support-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.ose-support-btn svg{
  width:18px;
  height:18px;
  flex-shrink:0;
}
.ose-support-btn--wa{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}
.ose-support-btn--email{
  background:#fff5f2;
  border-color:#f0b9a8;
  color:var(--accent);
}
.ose-support-btn--phone{
  background:#fff;
}

.ose-lang-bar{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  justify-content:flex-end;
  width:100%;
}
.ose-lang-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:.45rem .7rem;
  min-height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  flex-shrink:0;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .15s ease, border-color .15s ease;
}
.ose-lang-btn:hover{
  border-color:#f0b9a8;
  background:#fffaf5;
}
.ose-lang-btn.is-active{
  border-color:var(--accent);
  background:#fff5f2;
  color:var(--accent);
}

.ose-thank-hero{
  text-align:center;
}
.ose-thank-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:72px;
  height:72px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--sun), #f5d06a);
  color:#381A0A;
  font-size:36px;
  font-weight:800;
  margin:0 auto 16px;
  box-shadow:0 8px 24px rgba(248,192,69,.35);
}
.ose-thank-event{
  background:#fffaf5;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
}
.ose-thank-event-label{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  margin-bottom:4px;
}
.ose-thank-event-when{
  font-size:20px;
  font-weight:800;
  color:var(--ink);
}
.ose-thank-event-title{
  font-size:16px;
  color:var(--muted);
  margin-top:4px;
}
.ose-zoom-box{
  background:linear-gradient(180deg, #fff 0%, #fff9f2 100%);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}
.ose-thank-actions{
  display:grid;
  gap:10px;
}
@media (min-width:640px){
  .ose-thank-actions{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ose-thank-actions .ose-btn-primary{ grid-column:1 / -1; }
}

/* ---- Mobile phone layout ---- */
@media (max-width:639px){
  body.ose-body{ font-size:16px; }

  .ose-lang-bar{
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:4px;
    margin:0 -2px;
  }
  .ose-lang-bar::-webkit-scrollbar{ display:none; }
  .ose-lang-btn span:nth-child(2){ display:none; }
  .ose-lang-btn{ padding:.5rem .65rem; }

  .ose-ticket-card{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-rows:auto auto;
    text-align:left;
    padding:12px 14px;
    gap:2px 12px;
    align-items:center;
  }
  .ose-ticket-card .ose-ticket-name{
    grid-column:1;
    margin-top:0;
    font-size:16px;
  }
  .ose-ticket-card .ose-ticket-price{
    grid-column:1;
    font-size:22px;
    margin:0;
  }
  .ose-ticket-card .ose-ticket-desc{
    grid-column:1 / -1;
    min-height:auto;
    margin:0 0 4px;
    font-size:13px;
  }
  .ose-ticket-card .ose-ticket-qty{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:center;
  }

  .ose-support-actions{
    flex-direction:column;
  }
  .ose-support-btn{
    width:100%;
    min-height:var(--touch);
    justify-content:center;
    padding:.75rem 1rem;
  }

  .ose-thank-actions .ose-btn,
  .ose-zoom-box .ose-btn{
    width:100%;
  }

  .ose-thank-event-when{
    font-size:1.125rem;
    line-height:1.35;
    word-break:break-word;
  }

  .ose-thank-check{
    width:64px;
    height:64px;
    font-size:32px;
  }
}

@media (min-width:640px){
  .ose-lang-btn span:nth-child(2){ display:inline; }
}

