#date-calendar{width:min(760px,calc(100% - 28px));max-width:760px;max-height:90dvh;overflow:auto;border:1px solid #ffffffbd;border-radius:24px;padding:25px 28px;background:linear-gradient(130deg,#fff,#f5f2f3f0);box-shadow:0 25px 90px #0004;backdrop-filter:blur(25px)}#date-calendar::backdrop{background:#15131b7a;backdrop-filter:blur(8px)}.calendar-dialog-top{display:flex;justify-content:space-between;align-items:flex-start}.calendar-dialog-top .eyebrow{font-size:9px;margin-bottom:8px}.calendar-dialog-top h2{font-size:25px;margin:0 0 20px}.calendar-dialog-top>button{border:0;background:#e9e4e6;border-radius:50%;height:32px;width:32px;font:23px Arial}.calendar-tabs{display:flex;gap:10px}.calendar-tabs button{flex:1;border:1px solid #e2d9dc;background:#fff9;border-radius:12px;padding:10px;font-size:12px}.calendar-tabs button[aria-pressed=true]{border-color:#bd2946;color:#a1243e;background:#fbecf0}.calendar-status{min-height:34px;font-size:11px;line-height:1.6;margin:14px 0}.guest-calendar-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.guest-calendar-nav span{font-size:11px;color:#81727a}.guest-calendar-nav button{border:1px solid #e2dbde;border-radius:50%;background:#fff;width:32px;height:32px;font:23px Arial}.guest-calendar-months{display:grid;grid-template-columns:1fr 1fr;gap:28px}.guest-calendar-month h3{text-align:center;font-size:14px;text-transform:capitalize;margin:8px 0 14px}.guest-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.guest-days .weekday{text-align:center;font-size:10px;color:#998a91;padding-block:4px}.guest-days button{aspect-ratio:1;border:0;background:transparent;border-radius:9px;font-size:12px;color:#252127;padding:0}.guest-days button:hover:not(:disabled){background:#efdde4}.guest-days button:disabled{opacity:1;color:#b8afb4;cursor:default}.guest-days button.is-busy{text-decoration:line-through;color:#a399a0;background:#e9e5e766}.guest-days button.is-busy:not(:disabled){border:1px dashed #bd2946}.guest-days button.in-range{background:#f2dce3;color:#6b283a;border-radius:3px}.guest-days button.is-selected{background:#b42643;color:#fff;text-decoration:none}.guest-calendar-legend{display:flex;justify-content:center;gap:20px;font-size:10px;margin-top:20px;color:#80727a}.guest-calendar-legend i{display:inline-block;width:9px;height:9px;border:1px solid #bbb;border-radius:3px;vertical-align:middle}.guest-calendar-legend i.selected{background:#b42643;border-color:#b42643}.calendar-hint{font-size:10px;text-align:center;margin:8px 0 15px}.calendar-dialog-actions{display:flex;justify-content:space-between;gap:15px;align-items:center}.calendar-dialog-actions>[data-calendar-retry]{font-size:11px;border:0;background:transparent;text-decoration:underline;color:#776771}.calendar-dialog-actions .button{font-size:11px;min-height:38px;padding:10px 16px;border-radius:9px}.availability .date-field input[type=hidden]{display:none}
@media(max-width:680px){#date-calendar{padding:21px 18px;border-radius:20px}.guest-calendar-months{grid-template-columns:1fr;gap:0}.calendar-dialog-top h2{font-size:23px}.guest-days{gap:3px}.guest-days button{font-size:13px}.calendar-status{font-size:10px}.calendar-tabs button{font-size:11px;padding:9px 5px}.guest-calendar-legend{gap:15px}.calendar-dialog-actions{gap:8px}.calendar-dialog-actions>[data-calendar-retry]{font-size:10px}.calendar-dialog-actions .button{font-size:10px}}

/* A fixed viewport budget keeps all calendar controls visible without scrolling. */
#date-calendar{height:min(700px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);overflow:hidden;padding:20px 24px}
#date-calendar[open]{display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto auto;gap:0}
.guest-calendar-months{min-height:0}.guest-calendar-month{min-height:0;display:flex;flex-direction:column}.guest-days{flex:1;min-height:0;grid-template-rows:repeat(7,minmax(0,1fr));gap:3px}.guest-days button{aspect-ratio:auto;min-height:0}.guest-days .weekday{display:grid;place-items:center;padding:0}.calendar-dialog-top h2{margin-bottom:12px}.calendar-status{min-height:0;margin:10px 0;font-size:11px}.guest-calendar-legend{margin-top:12px}.calendar-hint{margin:6px 0 10px}.guest-calendar-month h3{margin:5px 0 8px}
@media(max-width:680px){#date-calendar{padding:16px}.calendar-status{font-size:10px}.guest-calendar-legend{font-size:9px}.guest-calendar-month h3{font-size:13px}}
@media(max-height:650px){#date-calendar{padding:12px 16px;border-radius:16px}.calendar-dialog-top .eyebrow{display:none}.calendar-dialog-top h2{font-size:19px;margin-bottom:8px}.calendar-dialog-top>button{height:25px;width:25px;font-size:20px}.calendar-tabs button{padding:6px;font-size:10px}.calendar-status{font-size:9px;line-height:1.3;margin:6px 0;max-height:24px;overflow:hidden}.guest-calendar-nav{margin:0}.guest-calendar-nav button{width:26px;height:26px;font-size:20px}.guest-calendar-nav span{font-size:9px}.guest-calendar-month h3{font-size:12px;margin:4px 0}.guest-days button{font-size:11px}.guest-days .weekday{font-size:9px}.guest-calendar-legend{margin-top:6px;gap:12px;font-size:9px}.calendar-hint{display:none}.calendar-dialog-actions{margin-top:7px}.calendar-dialog-actions .button{min-height:30px;padding:7px 10px;font-size:10px}.calendar-dialog-actions>[data-calendar-retry]{font-size:9px}}
@media(max-height:400px){.calendar-status{white-space:nowrap;text-overflow:ellipsis;max-height:13px}.guest-calendar-legend{display:none}.guest-days{gap:1px}.guest-days button{font-size:10px;border-radius:4px}.guest-calendar-nav button{height:22px;width:22px}.calendar-dialog-top h2{font-size:16px}.calendar-dialog-actions{margin-top:4px}}
