#afc-rooms {
  box-sizing: border-box; margin: auto; padding: 0; width: min(640px,calc(100vw - 24px));
  max-height: 90dvh; overflow: auto; border: 1px solid #d4d8cf; border-radius: 12px;
  color: #253a30; background: #fcfbf8; box-shadow: 0 24px 75px #162a2340;
}
#afc-rooms::backdrop {background: #15281f85}
#afc-rooms .rooms-inner {padding: clamp(20px,3.5vw,30px)}
#afc-rooms header,#afc-rooms footer,#afc-rooms .rooms-label {display: flex; align-items: center; gap: 12px; justify-content: space-between}
#afc-rooms header h2 {font: 400 clamp(25px,5vw,34px)/1.1 Georgia,serif; margin: 0}
#afc-rooms button,#afc-rooms textarea {font-family: inherit}
#afc-rooms button {cursor: pointer; color: inherit}
#afc-rooms .rooms-close {border: 1px solid #cbd1c7; border-radius: 50%; height: 32px; width: 32px; background: transparent; font-size: 21px; line-height: 1}
#afc-rooms .rooms-desc {font-size: 14px; line-height: 1.5; margin: 16px 0 6px}
#afc-rooms .rooms-reference,#afc-rooms .rooms-hint,#afc-rooms caption {color: #55635a; font-size: 12px; line-height: 1.5}
#afc-rooms .rooms-reference {overflow-wrap: anywhere; margin: 0 0 18px}
#afc-rooms .rooms-label {margin-bottom: 5px; font-size: 14px; font-weight: 650}
#afc-rooms .rooms-example {padding: 3px 0; font-size: 12px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px}
#afc-rooms textarea {display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 90px; resize: vertical; padding: 10px; tab-size: 7; border: 1px solid #abb7a7; background: #fff; color: #24362a; border-radius: 6px; font: 13px/1.5 ui-monospace,monospace}
#afc-rooms .rooms-hint {margin: 6px 0 15px}
#afc-rooms .rooms-count {font-size: 14px; font-weight: 650; margin: 0 0 7px}
#afc-rooms .rooms-errors {padding: 10px 10px 10px 28px; margin: 8px 0; max-height: 120px; overflow: auto; background: #fcf0e9; border: 1px solid #dac0b1; color: #78432c; font-size: 13px}
#afc-rooms .rooms-scroll {max-height: 200px; overflow: auto; border: 1px solid #d8ded4; border-radius: 5px}
#afc-rooms table {width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums}
#afc-rooms caption {text-align: left; padding: 5px 9px}
#afc-rooms th,#afc-rooms td {text-align: left; padding: 5px 8px; border-bottom: 1px solid #e4e6de}
#afc-rooms th {font-weight: 650; background: #f0f2eb}
#afc-rooms td:nth-child(2) {overflow-wrap: anywhere}
#afc-rooms footer {margin-top: 18px; justify-content: flex-end; flex-wrap: wrap}
#afc-rooms footer button {font-size: 13px; font-weight: 600; padding: 9px 12px; border: 1px solid #c8d0c4; border-radius: 5px; background: transparent}
#afc-rooms .rooms-submit {color: white; background: #284734; border-color: #284734}
#afc-rooms .rooms-submit:disabled {opacity: .48; cursor: default}
#afc-rooms [hidden] {display: none}
@media (max-width:420px) {#afc-rooms th,#afc-rooms td {padding: 4px}#afc-rooms .rooms-inner {padding: 16px}}

.rooms-basis,.apartment-design-fields { display:flex; flex-wrap:wrap; gap:.65rem 1rem; }
.rooms-basis { margin:1rem 0; }
.rooms-basis label,.apartment-design-group > label { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; font-size:.9rem; }
.rooms-basis select { padding:.45rem; border:1px solid #b8c4b8; border-radius:.3rem; background:#fff; color:inherit; }
.apartment-design { margin:.8rem 0 1.15rem; }
.apartment-design > summary { cursor:pointer; font-weight:600; }
.apartment-design-list { margin:.65rem 0; }
.apartment-design-group { border-top:1px solid #d5ddd4; padding:.55rem 0; }
.apartment-design-fields { margin:.35rem 0 0 1.25rem; }
.apartment-design-fields .apartment-field { flex:1 1 8rem; }
.apartment-disclosure { margin-top:.35rem; }
.apartment-limit { padding:.7rem; background:#f7edda; color:#563f1d; }
.apartment-design-fields[hidden],.rooms-basis label[hidden],.apartment-room-options[hidden] { display:none; }
