/* Shipmo at checkout. Quiet by default: it inherits the theme's type and
   colour, and uses currentColor tints so it fits any store. */
.ats-info {
  margin: 6px 0 2px 24px;
  font-size: .9em;
  line-height: 1.45;
  animation: ats-in .2s cubic-bezier(.2, .8, .2, 1) both;
}
.ats-info__pay { margin: 0; opacity: .82; }
.ats-info__more {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin: 2px 0 0; padding: 0 10px 0 6px;
  border: 0; border-radius: 10px; background: transparent; color: inherit;
  font: inherit; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s ease-out, background-color .15s ease;
}
.ats-info__more:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.ats-info__more:active { transform: scale(.97); }
.ats-info__more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ats-info__more svg { flex: none; }

.ats-note-row td { padding-top: 4px !important; padding-bottom: 8px !important; }
.ats-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px;
  border-radius: 12px; font-size: .92em; line-height: 1.45;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.ats-note svg { flex: none; margin-top: 2px; opacity: .7; }

.ats-town-select { width: 100%; margin-top: 6px; }

/* The details sheet: a card that grows from its info button; a bottom
   sheet on phones. Critically damped (no overshoot), exits faster than it
   enters. */
.ats-sheet {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(15, 23, 42, 0); transition: background-color .22s ease;
}
.ats-sheet.is-open { background: rgba(15, 23, 42, .32); }
.ats-sheet__panel {
  position: fixed; width: min(360px, calc(100vw - 32px));
  padding: 18px 18px 14px; border-radius: 16px;
  background: #fff; color: #0f172a;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .4), 0 2px 6px rgba(15, 23, 42, .08);
  opacity: 0; transform: scale(.94);
  transition: transform .3s cubic-bezier(.2, .9, .25, 1), opacity .18s ease;
  font-size: 15px; line-height: 1.5;
}
.ats-sheet.is-open .ats-sheet__panel { opacity: 1; transform: none; }
.ats-sheet__panel h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.ats-sheet__panel p { margin: 0 0 10px; }
.ats-sheet__meta { opacity: .7; font-size: 14px; }
.ats-sheet__grab { display: none; }
.ats-sheet__close {
  width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 12px;
  background: #0f172a; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .1s ease-out;
}
.ats-sheet__close:active { transform: scale(.97); }

.ats-sheet.is-phone .ats-sheet__panel {
  left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; transform: translateY(100%); opacity: 1;
  transition: transform .34s cubic-bezier(.2, .9, .25, 1);
  touch-action: none;
}
.ats-sheet.is-phone.is-open .ats-sheet__panel { transform: none; }
.ats-sheet.is-phone .ats-sheet__grab {
  display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(15, 23, 42, .18);
}

@keyframes ats-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ats-info { animation: none; }
  .ats-sheet__panel, .ats-sheet.is-phone .ats-sheet__panel { transition: opacity .15s ease; transform: none !important; }
  .ats-sheet.is-phone .ats-sheet__panel { opacity: 0; }
  .ats-sheet.is-phone.is-open .ats-sheet__panel { opacity: 1; }
}
@media (prefers-color-scheme: dark) {
  .ats-sheet__panel { background: #151922; color: #e8eaf0; }
  .ats-sheet__close { background: #e8eaf0; color: #0f172a; }
  .ats-sheet.is-phone .ats-sheet__grab { background: rgba(255, 255, 255, .22); }
}
