/* A coluna de orientação acompanha o formulário sem encobrir a agenda em telas pequenas. */
.appointments .appointment-layout {
  display:grid; grid-template-columns:minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:"title main" "guide main" ". main";
  grid-template-rows:auto auto 1fr; align-items:start; gap:0 clamp(2rem,6vw,5rem);
  max-width:70rem;
}
.appointments .checkout-title {grid-area:title;margin-bottom:2rem}
.appointments .checkout h1 {font-size:clamp(2.45rem,5.6vw,4.7rem);margin-bottom:1.2rem}
.appointments .appointment-main {grid-area:main;overflow-wrap:anywhere}
.appointment-guide {grid-area:guide;border-top:1px solid var(--line);padding-top:1.5rem}
.appointments .appointment-guide h2 {font-size:1.5rem;line-height:1.35}
.appointment-guide ol {padding-left:1.4rem}
.appointment-guide li {padding-left:.4rem;margin:.8rem 0}
.appointment-guide li::marker {font-weight:700;color:#78352e}
.appointment-guide p,.slot-hint {color:var(--muted)}
.appointments .checkout fieldset {margin:0 0 1.8rem}
.appointments .checkout legend {padding:0;margin-bottom:.4rem;line-height:1.3}
.appointments .checkout #services label,.appointments .checkout .slots label {
  display:flex;align-items:center;gap:.65rem;cursor:pointer;
  padding:.85rem;border:1px solid var(--line);border-radius:.2rem;
}
.appointments .checkout #services input,.appointments .checkout .slots input {
  width:1.15rem;min-height:0;height:1.15rem;flex:none;margin:0;accent-color:var(--pine)
}
.appointments .checkout #services label:has(:checked),.appointments .checkout .slots label:has(:checked) {
  background:#f6ebe2;border-color:var(--pine);box-shadow:inset 0 0 0 1px var(--pine)
}
.appointments #services small {display:block;color:var(--muted);font-weight:400;font-size:.92rem}
.appointments #services b {margin-left:auto;white-space:nowrap}
.appointments .slots {display:grid;grid-template-columns:repeat(auto-fit,minmax(6.4rem,1fr));gap:.45rem;margin-top:.6rem}
.appointments .checkout .slots label {justify-content:center;margin:0;padding:.6rem .45rem}
.appointments .checkout input[type=file] {font-size:.93rem;padding:.55rem}
.appointments .appointment-total,.appointments #proof-form,.appointments #change {
  padding-top:1.25rem;border-top:1px solid var(--line);margin-top:1.25rem
}
.appointment-total {font-weight:700}
.appointment-total:empty,.appointments .form-status:empty {display:none}
.appointments :is(#recent,#create,#upload,#paused a) {margin-top:1rem}
.appointments #recent {display:inline-block}
.appointments #proof-form p,.appointments #change fieldset {margin-top:.7rem}
.appointments #pay,.appointments #create,.appointments #upload,.appointments #reschedule {width:100%}
.appointments .button {text-align:center}
.appointments .appointment-review dt {color:var(--muted)}
.appointments .appointment-review dd {font-weight:600}
#appointments-area {max-width:65rem;overflow-wrap:anywhere}
#appointments-area .visit-heading,#appointments-area .visit-actions {display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
#appointments-area article {margin:1.2rem 0;padding:1.25rem;background:#fffdfa;border:1px solid #d0c5bc}
#appointments-area article p {margin:.5rem 0}
#appointments-area .visit-actions {margin-top:1rem}
#appointments-area button {cursor:pointer}
#appointments-area button:disabled {opacity:.55;cursor:wait}
@media(max-width:52rem) {
  .appointments .appointment-layout {grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "main" "guide";grid-template-rows:auto;max-width:38rem}
  .appointment-guide {margin-top:2rem}
  .appointments .top-inner {padding-block:1rem}
}
@media(max-width:28rem) {
  .appointments .checkout #services label {flex-wrap:wrap}
  .appointments #services span {flex:1 1 69%}
  .appointments #services b {margin:0 0 0 1.8rem}
  .appointments .appointment-review > div {display:block}
  .appointments .appointment-review dd {text-align:left}
}
