/* Pre-order offer popup — Tara Sushi Bar. Everything is namespaced tsbf-
   so the theme's global form and button rules cannot reach in. */

html.tsbf-lock, html.tsbf-lock body { overflow: hidden !important; }

.tsbf-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(17, 16, 18, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: tsbf-fade .18s ease-out;
}

.tsbf-card {
  box-sizing: border-box;
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: #17161a;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  font-family: inherit; text-align: center;
  animation: tsbf-up .22s ease-out;
}

.tsbf-booked {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 1.3; color: #3b6b3f;
  background: #eef6ee; border-radius: 999px; padding: 6px 12px;
  margin: 0 0 16px;
}
.tsbf-tick {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #3b8a42; color: #fff; font-size: 11px; font-weight: 700;
}

.tsbf-card h2 {
  margin: 0 0 8px; padding: 0;
  font-size: 22px; line-height: 1.25; font-weight: 700; color: #17161a;
  letter-spacing: 0; text-transform: none;
}

.tsbf-p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: #4a4650; }

.tsbf-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }

.tsbf-opt {
  border: 1px solid #e6e2dc; border-radius: 12px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #6e6a63;
}
.tsbf-opt b { font-size: 26px; line-height: 1.1; color: #6e6a63; font-weight: 700; }
.tsbf-opt i { font-style: normal; font-size: 12px; }
.tsbf-opt em { font-style: normal; font-size: 13px; margin-top: 6px; }
.tsbf-opt:not(.tsbf-best) b { text-decoration: line-through; text-decoration-thickness: 2px; }

.tsbf-best { border: 2px solid #c8102e; background: #fdf2ef; color: #17161a; }
.tsbf-best b { color: #c8102e; }
.tsbf-best em { font-weight: 600; color: #17161a; }

.tsbf-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 4px; }
.tsbf-best .tsbf-tag { color: #c8102e; }

.tsbf-actions { display: flex; flex-direction: column; gap: 10px; }

.tsbf-overlay button.tsbf-yes,
.tsbf-overlay button.tsbf-no {
  box-sizing: border-box; width: 100%; min-height: 50px; margin: 0;
  padding: 12px 16px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-transform: none; letter-spacing: 0;
  transition: background .15s, border-color .15s;
}
.tsbf-overlay button.tsbf-yes { background: #c8102e; color: #fff; border: 1px solid #c8102e; }
.tsbf-overlay button.tsbf-yes:hover { background: #a50d26; border-color: #a50d26; }
.tsbf-overlay button.tsbf-no { background: #fff; color: #17161a; border: 1px solid #cfcac2; font-weight: 500; font-size: 15px; }
.tsbf-overlay button.tsbf-no:hover { border-color: #17161a; }
.tsbf-overlay button:disabled { opacity: .7; cursor: default; }
.tsbf-overlay button:focus-visible { outline: 3px solid #f2b8c0; outline-offset: 2px; }

.tsbf-small { margin: 14px 0 0; font-size: 12.5px; color: #6e6a63; line-height: 1.4; }

@media (max-width: 380px) {
  .tsbf-card { padding: 20px 16px 16px; }
  .tsbf-card h2 { font-size: 20px; }
  .tsbf-opt b { font-size: 22px; }
}

@keyframes tsbf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tsbf-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tsbf-overlay, .tsbf-card { animation: none; }
}
