.ts-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1700;
}
.ts-panel{
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 420px;
  max-width: 100%;
  background: #ffffff;
  z-index: 1701;
  display: flex;
  flex-direction: column;
  transition: right .35s ease;
  overflow-y: auto;
}
.ts-panel.open{right:0}

.ts-footer{padding:20px;border-bottom:1px solid #e5e7eb}
.ts-body{flex:1;overflow-y:auto;padding:20px;padding-bottom:140px}
.ts-step{display:none}.ts-step.active{display:block}

.ts-size-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.ts-size-grid input{width:100%}

.ts-note{background:#eff6ff;padding:10px;border-radius:8px;font-size:12px;color:#1e40af;margin-top:10px}
.ts-global-note{background:#fffbeb;padding:12px;border-radius:10px;font-size:12px;color:#92400e;margin-top:16px}

.ts-footer{position:sticky;bottom:0;display:flex;gap:12px;border-top:1px solid #e5e7eb}
/*.ts-footer button{flex:1;height:44px;border:none;border-radius:10px;font-weight:600}*
.ts-footer button:last-child{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}
*/
.hidden{display:none!important}

.ts-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/*TS bill*/
.ts-bill {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.ts-bill div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.ts-bill hr {
  border-top: 1px dashed #d1d5db;
  margin: 10px 0;
}

.ts-bill .total {
  font-size: 16px;
  font-weight: 700;
}

/*TS footer section*/
.ts-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.ts-footer button {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Back button */
.ts-footer button:first-child {
  background: #f1f5f9;
  color: #1f2937;
}

/* Primary CTA */
.ts-footer button:last-child {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/*.ts-multi*/
.ts-multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.ts-multi label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  transition: all .2s ease;
}

.ts-multi label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.ts-multi input {
  accent-color: #2563eb;
  transform: scale(1.1);
}

.ts-multi label:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

/*Quantity + size section = card-style blocks*/
#tsSingleBox,
#tsDoubleBox {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

/*Size grid = clean pill inputs*/
.ts-size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.ts-size-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.ts-size-grid input {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  text-align: center;
  font-weight: 600;
}

.ts-size-grid input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/*Inputs & labels = modern consistency*/
.ts-body label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  display: block;
  color: #1f2937;
}

.ts-body input[type="text"],
.ts-body input[type="number"],
.ts-body input[type="date"],
.ts-body input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

/*Footer button = premium CTA*/
.ts-footer button:last-child {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}

/* =========================================
   UNIVERSAL MOBILE PANEL SYSTEM
========================================= */

@media (max-width: 640px){

  .logo-panel,
  .flex-panel,
  .gst-panel,
  .web-panel,
  .ts-panel,
  .company-panel,
  .lam-panel,
  .mc-panel,
  .pan-panel,
  .print-panel,
  .vc-panel,
  .voter-panel {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    border-radius: 0 !important;
  }

  .logo-panel.open,
  .flex-panel.open,
  .gst-panel.open,
  .web-panel.open,
  .ts-panel.open,
  .company-panel.open,
  .lam-panel.open,
  .mc-panel.open,
  .pan-panel.open,
  .print-panel.open,
  .vc-panel.open,
  .voter-panel.open {
    right: 0 !important;
  }
}