diff --git a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.module.css b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.module.css index d3b72a1ad..7fe08b103 100644 --- a/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.module.css +++ b/apps/scandic-web/app/[lang]/(live)/(public)/hotelreservation/(standard)/details/page.module.css @@ -20,6 +20,7 @@ bottom: 0; left: 0; right: 0; + z-index: 99; } @media screen and (min-width: 1367px) { diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/BottomSheet/bottomSheet.module.css b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/BottomSheet/bottomSheet.module.css index 99eb5567f..763237464 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/BottomSheet/bottomSheet.module.css +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/BottomSheet/bottomSheet.module.css @@ -32,6 +32,8 @@ .wrapper[data-open="true"] { grid-template-rows: 1fr 7.5em; + position: relative; + z-index: var(--default-modal-z-index); } .wrapper[data-open="true"] .bottomSheet { diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/index.tsx index d68193c6a..e34a740b5 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/Mobile/index.tsx @@ -12,8 +12,11 @@ import styles from "./mobile.module.css" import type { SummaryProps } from "@/types/components/hotelReservation/summary" export default function MobileSummary({ isMember }: SummaryProps) { - const toggleSummaryOpen = useEnterDetailsStore( - (state) => state.actions.toggleSummaryOpen + const { isSummaryOpen, toggleSummaryOpen } = useEnterDetailsStore( + (state) => ({ + isSummaryOpen: state.isSummaryOpen, + toggleSummaryOpen: state.actions.toggleSummaryOpen, + }) ) const { booking, rooms, totalPrice, vat } = useEnterDetailsStore((state) => ({ @@ -31,7 +34,21 @@ export default function MobileSummary({ isMember }: SummaryProps) { return (
- {showPromo ? : null} + {showPromo ? ( +
+ +
+ ) : null} + + {isSummaryOpen && ( +