feat(SW-1259): Enter details multiroom * refactor: remove per-step URLs * WIP: map multiroom data * fix: lint errors in details page * fix: made useEnterDetailsStore tests pass * fix: WIP refactor enter details store * fix: WIP enter details store update * fix: added room index to select correct room * fix: added logic for navigating between steps and rooms * fix: update summary to work with store changes * fix: added room and total price calculation * fix: removed unused code and added test for breakfast included * refactor: move store selectors into helpers * refactor: session storage state for multiroom booking * feat: update enter details accordion navigation * fix: added room index to each form component so they select correct room * fix: added unique id to input to handle case when multiple inputs have same name * fix: update payment step with store changes * fix: rebase issues * fix: now you should only be able to go to a step if previous room is completed * refactor: cleanup * fix: if no availability just skip that room for now * fix: add select-rate Summary and adjust typings Approved-by: Arvid Norlin
45 lines
724 B
CSS
45 lines
724 B
CSS
.container {
|
|
display: grid;
|
|
gap: var(--Spacing-x3) var(--Spacing-x9);
|
|
}
|
|
|
|
.content {
|
|
width: var(--max-width-page);
|
|
margin: var(--Spacing-x3) auto 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x4);
|
|
}
|
|
|
|
.header {
|
|
padding-bottom: var(--Spacing-x3);
|
|
}
|
|
|
|
.summary {
|
|
position: sticky;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
@media screen and (min-width: 1367px) {
|
|
.container {
|
|
grid-template-columns: 1fr 340px;
|
|
grid-template-rows: auto 1fr;
|
|
width: var(--max-width-page);
|
|
margin: var(--Spacing-x5) auto 0;
|
|
}
|
|
|
|
.content {
|
|
width: 100%;
|
|
margin: var(--Spacing-x3) 0 0;
|
|
}
|
|
|
|
.summary {
|
|
position: static;
|
|
display: grid;
|
|
grid-column: 2/3;
|
|
grid-row: 1/-1;
|
|
}
|
|
}
|