/* Kalendář v2 + formulář rezervace. Tokeny z tématu, --tap 44 px. */
.ms-booker{
  --tap:44px;
  --field-line:rgba(201,158,72,.62); /* 0.1.66: hranice polí ≥ 3:1 (WCAG 1.4.11) */
  background:var(--card);
  border:1px solid var(--line, rgba(201,158,72,.28));
  border-radius:var(--radius, 2px);
  padding:1.35rem 1.3rem 1.5rem;
  backdrop-filter:blur(12px);
  position:relative;
}
.ms-booker__steps{display:flex;flex-wrap:wrap;gap:.35rem;margin:0 0 1.3rem;padding:0}
.ms-booker__steps li{list-style:none}
.ms-step{
  display:inline-flex;align-items:center;gap:.45rem;
  min-height:var(--tap);padding:.3rem .75rem;
  border:1px solid var(--line, rgba(201,158,72,.28));
  background:transparent;color:var(--text2);
  border-radius:var(--btn-radius, 2px);
  font-size:.8rem;font-weight:600;cursor:pointer;
}
.ms-step .n{
  width:1.35rem;height:1.35rem;border-radius:50%;
  border:1px solid var(--gold);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.75rem;color:var(--gold-l);
}
.ms-step[aria-current="step"]{color:var(--text);border-color:var(--gold)}
.ms-step[aria-current="step"] .n{background:var(--grad);color:var(--ink);border-color:transparent}
.ms-step:disabled{opacity:.45;cursor:default}
.ms-panel{display:none}
.ms-panel.is-on{display:block}
.ms-panel h3{font-size:1.15rem;margin:0 0 .8rem;font-family:var(--sans);font-weight:600;letter-spacing:.02em;color:var(--text)}
.ms-choice{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.ms-choice button,.ms-len button,.ms-chip{
  text-align:left;border:1px solid var(--line, rgba(201,158,72,.28));
  background:rgba(5,19,23,.35);border-radius:var(--radius, 2px);
  color:var(--text);min-height:var(--tap);cursor:pointer;font:inherit;
}
.ms-choice button{padding:14px 20px;display:flex;flex-direction:column;gap:.2rem}
.ms-choice button b{font-family:var(--serif);font-size:1.25rem;font-weight:500;color:var(--gold-l)}
.ms-choice button span{color:var(--text2);font-size:.82rem;font-weight:400}
.ms-choice button[aria-pressed="true"],
.ms-len button[aria-pressed="true"],
.ms-chip[aria-pressed="true"]{
  border-color:var(--gold);
  background:linear-gradient(180deg,rgba(201,158,72,.18),rgba(201,158,72,.07));
  box-shadow:inset 0 0 0 1px var(--gold);
}
.ms-len{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.9rem}
.ms-len button{padding:14px 20px;font-weight:600;font-size:.9rem;min-width:5.5rem}
.ms-hint{margin-top:.7rem;color:var(--mut);font-size:.88rem;line-height:1.5}
.ms-hint.mark{color:var(--gold-l)}
.ms-booker-lead{margin:.4rem 0 1.1rem;color:var(--text2);font-size:.95rem;max-width:40rem}
.ms-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.7rem;gap:.6rem}
.ms-cal-head h3{margin:0;font-family:var(--serif);font-size:1.45rem;font-weight:500;color:var(--gold-l)}
.ms-cal-nav{display:flex;gap:.35rem}
.ms-cal-nav button{
  width:var(--tap);height:var(--tap);border:1px solid var(--line, rgba(201,158,72,.28));
  background:transparent;color:var(--gold-l);border-radius:50%;
  font-size:1.3rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
}
.ms-cal-nav button:disabled{opacity:.3;cursor:default}
.ms-dow,.ms-grid{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:4px}
.ms-dow span{text-align:center;font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);padding:.2rem 0}
.ms-grid button,.ms-grid .empty,.ms-grid .off{
  min-height:var(--tap);min-width:0;border:0;background:transparent;color:var(--mut);
  border-radius:calc(var(--radius, 2px) + 4px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  font-weight:600;font-size:.95rem;line-height:1.1;padding:.2rem 0;
}
.ms-grid .empty{visibility:hidden}
.ms-grid .off{opacity:.4;cursor:default}
.ms-grid button.has{background:rgba(201,158,72,.14);color:var(--text);border:1px solid rgba(201,158,72,.4);cursor:pointer}
.ms-grid button.has i{font-style:normal;font-size:.75rem;font-weight:600;color:var(--gold);letter-spacing:.04em}
.ms-grid button[aria-pressed="true"]{background:var(--grad);color:var(--ink);border-color:transparent}
.ms-grid button[aria-pressed="true"] i{color:inherit}
.ms-grid button.has:hover{border-color:var(--gold)}
.ms-times{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.2rem}
.ms-chip{min-height:var(--tap);padding:14px 20px;font-weight:600;font-size:.95rem;min-width:7.2rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.ms-summary{margin:1rem 0 1.1rem;padding:1rem 1.05rem;border:1px solid var(--line, rgba(201,158,72,.28));border-radius:var(--radius, 2px);background:rgba(201,158,72,.08)}
.ms-summary dt{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);font-weight:600}
.ms-summary dd{font-family:var(--serif);font-size:1.25rem;margin:0 0 .55rem;overflow-wrap:anywhere;color:var(--text)}
.ms-summary dd:last-child{margin:0}
.ms-form .ms-row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.ms-form label{display:block;margin:0 0 .8rem;color:var(--text)}
.ms-form label > span{display:block;font-size:.82rem;font-weight:600;margin-bottom:.3rem;color:var(--text)}
.ms-form input:not([type]),
.ms-form input[type="text"],
.ms-form input[type="email"],
.ms-form input[type="tel"]{
  width:100%;min-height:var(--tap);padding:.55rem .8rem;
  border:1px solid var(--field-line);
  border-radius:var(--radius, 2px);
  background:rgba(5,19,23,.45);color:var(--text);font:inherit;box-sizing:border-box;
  color-scheme:dark;
}
.ms-form input:not([type]):-webkit-autofill,
.ms-form input:not([type]):-webkit-autofill:hover,
.ms-form input:not([type]):-webkit-autofill:focus,
.ms-form input[type="text"]:-webkit-autofill,
.ms-form input[type="text"]:-webkit-autofill:hover,
.ms-form input[type="text"]:-webkit-autofill:focus,
.ms-form input[type="email"]:-webkit-autofill,
.ms-form input[type="email"]:-webkit-autofill:hover,
.ms-form input[type="email"]:-webkit-autofill:focus,
.ms-form input[type="tel"]:-webkit-autofill,
.ms-form input[type="tel"]:-webkit-autofill:hover,
.ms-form input[type="tel"]:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  box-shadow:0 0 0 1000px #0a2428 inset;
  border:1px solid var(--line, rgba(201,158,72,.28));
  transition:background-color 99999s ease-out;
}
.ms-form input:focus{border-color:var(--gold);outline:none;box-shadow:0 0 0 3px rgba(201,158,72,.22)}
.ms-form input:focus-visible{outline:2px solid var(--gold-l);outline-offset:2px}
.ms-form input::placeholder{color:var(--mut);opacity:1}
.ms-form input[aria-invalid="true"]{border-color:#c45b5b}
.ms-field-err{display:block;margin-top:.3rem;color:#e8a0a0;font-size:.8rem}
.ms-pay{border:1px solid var(--line, rgba(201,158,72,.28));border-radius:var(--radius, 2px);padding:14px 20px;margin:0 0 1rem;display:grid;gap:.15rem}
.ms-pay legend{font-size:.82rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);padding:0 .35rem;margin-bottom:.35rem}
.ms-pay label{display:flex;gap:.7rem;align-items:flex-start;margin:0;min-height:var(--tap);padding:8px 0;font-weight:400;color:var(--text)}
.ms-pay label b{display:block;font-weight:600}
.ms-pay input,.ms-legal input{width:24px;height:24px;margin-top:.15rem;flex:none;accent-color:var(--gold)}
.ms-legal{margin:.2rem 0 1rem}
.ms-legal label{display:flex;gap:.7rem;align-items:flex-start;min-height:var(--tap);font-weight:400;color:var(--text2);font-size:.9rem}
.ms-legal a{color:var(--gold-l);text-decoration:underline}
.ms-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.1rem}
.ms-booker .btn{min-height:44px;min-width:44px}
.ms-done{text-align:center;padding:1.4rem .5rem 0}
.ms-done h3{font-family:var(--serif);font-size:1.8rem;margin-bottom:.5rem;color:var(--gold-l)}
.ms-done p{color:var(--text2);margin:.4rem 0}
.ms-paybox{margin:1.2rem auto;max-width:22rem;padding:1rem;border:1px solid var(--line, rgba(201,158,72,.28));border-radius:var(--radius, 2px);text-align:left}
.ms-paybox dl{margin:0 0 .8rem}
.ms-paybox dt{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);font-weight:600;margin-top:.5rem}
.ms-paybox dd{margin:0;font-family:var(--serif);font-size:1.15rem;color:var(--text);overflow-wrap:anywhere}
.ms-qr{display:block;width:200px;height:200px;margin:0 auto 1rem;background:#fff;border-radius:4px}
.ms-share{margin-top:1rem;padding:.8rem 1rem;border-left:2px solid var(--gold);color:var(--text2);font-size:.88rem;line-height:1.55}
.ms-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.ms-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#terminy .msr-notes{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.4rem;align-items:stretch}
@media (min-width:861px){
  #terminy .msr-notes{grid-auto-rows:1fr}
  #terminy .msr-notes > .ms-motto{display:flex;flex-direction:column;justify-content:center;align-self:stretch;height:100%;box-sizing:border-box}
  #terminy .msr-notes > p{align-self:stretch;height:100%;box-sizing:border-box}
}
#terminy .msr-notes > p,
#terminy .msr-notes > .ms-motto{
  margin:0;padding:1.1rem 1.3rem;border-left:2px solid var(--gold);background:rgba(13,44,53,.45);color:var(--text2)
}
#terminy .msr-notes > p{font-size:.92rem}
#terminy .msr-notes > .ms-motto,
#terminy .ms-motto{
  position:relative;padding:1.2rem 1.35rem 1.15rem 2.1rem;
  font-family:var(--serif);font-style:italic;font-weight:500;font-size:1.28rem;line-height:1.4;color:var(--text)
}
#terminy .ms-motto p{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit}
#terminy .ms-motto::before{
  content:"“";position:absolute;left:.65rem;top:.25rem;
  font-family:var(--serif);font-style:normal;font-weight:500;font-size:2.5rem;line-height:1;color:var(--gold);pointer-events:none
}
@media (max-width:860px){#terminy .msr-notes{grid-template-columns:1fr}}
@media (max-width:600px){
  .ms-booker{padding:1.1rem .7rem 1.3rem}
  .ms-choice{grid-template-columns:1fr}
  .ms-form .ms-row{grid-template-columns:1fr}
  .ms-pay{padding:12px 16px}
  .ms-dow,.ms-grid{gap:3px}
  .ms-chip,.ms-choice button,.ms-len button{padding:12px 16px}
}

/* 0.1.10: #terminy na 390 — schovat spodní lištu, časy pod kalendářem, scroll-margin */
@media (max-width:860px){
  body.ms-terminy-on .msr-mbar{display:none !important}
  body.ms-terminy-on.show-mbar{padding-bottom:0}
  #terminy{scroll-margin-bottom:12px}
  .ms-booker [data-time-title],.ms-times{
    scroll-margin-top:calc(var(--hdr,72px) + 12px);
    scroll-margin-bottom:16px
  }
  .ms-booker__steps{margin-bottom:.7rem}
  .ms-cal-head{margin-bottom:.35rem}
  .ms-cal-head h3{font-size:1.2rem}
  .ms-hint{margin-top:.4rem}
  .ms-panel[data-panel="day"] .ms-actions{margin-top:.55rem}
  .ms-panel[data-panel="day"] h3[data-time-title]{margin:.55rem 0 .35rem;font-size:1.02rem}
}
/* Potvrzení: QR + VS/IBAN/částka vedle sebe na desktopu, vejde se do 900 px */
.ms-done{padding:.6rem .2rem 0;text-align:center}
.ms-done h3{font-size:1.45rem;margin:0 0 .35rem}
.ms-done > p{margin:.2rem 0;font-size:.92rem}
.ms-paybox{
  display:grid;gap:.7rem 1.1rem;align-items:center;
  margin:.7rem auto 0;max-width:34rem;padding:.75rem .9rem;text-align:left
}
@media (min-width:700px){
  .ms-paybox--split{grid-template-columns:160px minmax(0,1fr)}
  .ms-qr{margin:0}
}
.ms-qr{width:160px;height:160px;margin:0 auto;background:#fff;border-radius:4px}
.ms-paybox dt{margin-top:.15rem;font-size:.75rem}
.ms-paybox dd{margin:0;font-size:1.05rem;display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.ms-paybox .ms-payee{font-size:.82rem;color:var(--text2);margin:0 0 .2rem}
.ms-copy-btn{
  flex:none;min-height:32px;min-width:32px;padding:.15rem .55rem;
  border:1px solid var(--line, rgba(201,158,72,.28));border-radius:2px;
  background:transparent;color:var(--gold-l);font-size:.75rem;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;cursor:pointer
}
.ms-copy-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ms-copy-btn.is-on{border-color:var(--gold);color:var(--ink);background:var(--grad)}
.ms-done .ms-actions{margin-top:.7rem}
.ms-legal label{flex-wrap:wrap}
.ms-legal label .ms-field-err{flex:1 0 100%;margin-top:.25rem}

/* Přidat do kalendáře (potvrzení) */
.ms-cal{margin:.7rem auto 0;max-width:34rem}
.ms-cal-title{margin:0 0 .35rem;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:600}
.ms-cal-btns{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:center}
.ms-cal-btn{flex:1 1 12rem;max-width:16rem;text-decoration:none}
@media (max-width:520px){
  .ms-cal-btns{flex-direction:column;align-items:stretch}
  .ms-cal-btn{flex:none;max-width:none;width:100%}
}
@media (min-width:700px){
  /* desktop: title and buttons on one row so the confirmation still fits 1280×900 */
  .ms-cal{display:flex;align-items:center;justify-content:center;gap:.3rem 1rem;margin-top:.45rem}
  .ms-cal-title{margin:0;white-space:nowrap}
  .ms-cal-btns{flex-wrap:nowrap}
  .ms-cal-btn{flex:0 1 auto;max-width:none;min-height:44px;padding:.5rem 1.1rem}
}
/* the ICS fallback is a <button>; keep it ghost like the <a> links (critical.css gives button.btn the gold fill) */
.ms-cal .ms-cal-btn,.ms-cal button.btn.ms-cal-btn,.ms-cal a.btn.ms-cal-btn{background:transparent;color:var(--gold-l);border:1px solid rgba(201,158,72,.55);box-shadow:none;font-family:inherit;line-height:1.2}
.ms-cal .ms-cal-btn:hover{background:rgba(201,158,72,.1);color:var(--gold-l);filter:none}
.ms-cal .ms-cal-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (min-width:700px){.ms-cal-btn{white-space:nowrap}}
