.ecomDrawerLock {
    overflow: hidden;
    touch-action: none;
}

.ecomDrawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .admin-bar .ecomDrawer {
        padding-top: 32px;
    }
}

.ecomDrawer[hidden] {
    display: none;
}

.ecomDrawerOverlay {
    position: absolute;
    inset: 0;
    background-color: rgba(7, 59, 74, 0.4);
    opacity: 0;
    transition: opacity 180ms var(--ecomEaseOut);
    pointer-events: none;
}

.ecomDrawer.isOpen .ecomDrawerOverlay {
    opacity: 1;
    pointer-events: auto;
    transition-duration: 240ms;
}

.ecomDrawerPanel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 90vh;
    gap: 16px;
    padding-block: 16px;
    background-color: var(--ecomColorSurface);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -8px 24px rgba(7, 59, 74, 0.12);
    transform: translateY(100%);
    transition: transform 220ms var(--ecomEaseOut);
    pointer-events: auto;
}

.ecomDrawer.isOpen .ecomDrawerPanel {
    transform: translateY(0);
    transition: transform 280ms var(--ecomEaseOut);
}

@media (min-width: 1024px) {
    .ecomDrawer {
        align-items: stretch;
        justify-content: flex-end;
    }

    .ecomDrawerPanel {
        width: 520px;
        max-width: 100%;
        max-height: none;
        height: 100%;
        gap: 24px;
        padding-block: 24px;
        border-radius: 0;
        box-shadow: -12px 0 32px rgba(7, 59, 74, 0.12);
        transform: translateX(100%);
    }

    .ecomDrawer.isOpen .ecomDrawerPanel {
        transform: translateX(0);
    }
}

.ecomDrawerHeader {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(7, 59, 74, 0.5);
}

@media (min-width: 1024px) {
    .ecomDrawerHeader {
        padding-inline: 24px;
        padding-bottom: 24px;
    }
}

.ecomDrawerTitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    color: var(--ecomColorTextStrong);
    text-wrap: pretty;
}

@media (min-width: 1024px) {
    .ecomDrawerTitle {
        font-size: 24px;
    }
}

.ecomDrawerClose {
    flex: 0 0 auto;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50%;
    background: transparent !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    line-height: 0;
    transition: transform 140ms ease !important;
}

.ecomDrawerCloseIcon {
    display: block;
    width: 40px;
    height: 40px;
}

@media (hover: hover) and (pointer: fine) {
    .ecomDrawerClose:hover {
        transform: scale(1.08);
    }
}

.ecomDrawerClose:active {
    transform: scale(0.95);
    transition-duration: 100ms;
}

.ecomDrawerClose:focus-visible {
    outline: 2px solid var(--ecomColorAccent);
    outline-offset: 2px;
}

.ecomDrawerContent {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 16px 16px;
    color: var(--ecomColorTextStrong);
    font-family: 'Poppins', sans-serif;
}

@media (min-width: 1024px) {
    .ecomDrawerContent {
        padding: 0 24px 24px;
    }
}

.ecomDrawerRichText {
    padding-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 22px;
}

.ecomDrawerRichText p {
    margin: 0 0 16px;
}

.ecomDrawerRichText p:last-child {
    margin-bottom: 0;
}

.ecomDrawerRichText a {
    color: var(--ecomColorAccent);
    text-decoration: underline;
}

.ecomDrawerRichText strong {
    color: var(--ecomColorAccent);
    font-weight: 600;
}

.ecomDrawerRichText + .ecomDrawerDropdown,
.ecomDrawerDropdown + .ecomDrawerDropdown,
.ecomDrawerDropdown + .ecomDrawerRichText {
    border-top: 1px solid rgba(7, 59, 74, 0.1);
}

.ecomDrawerDropdownSummary {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 16px 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--ecomColorTextStrong) !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    font-family: 'Poppins', sans-serif !important;
}

.ecomDrawerDropdownSummaryLeft {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.ecomDrawerDropdownIcon {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.ecomDrawerDropdownIcon img,
.ecomDrawerDropdownIcon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ecomDrawerDropdownTitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--ecomColorTextStrong);
    text-wrap: pretty;
}

@media (min-width: 1024px) {
    .ecomDrawerDropdownTitle {
        font-size: 20px;
    }
}

.ecomDrawerDropdownChevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    color: var(--ecomColorTextStrong);
    transition: transform 180ms ease;
}

.ecomDrawerDropdownChevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ecomDrawerDropdown[data-state="open"] .ecomDrawerDropdownChevron {
    transform: rotate(180deg);
}

.ecomDrawerDropdownWrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms var(--ecomEaseOut);
}

.ecomDrawerDropdown[data-state="open"] .ecomDrawerDropdownWrapper {
    grid-template-rows: 1fr;
}

.ecomDrawerDropdownBody {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--ecomColorTextStrong);
}

@media (min-width: 1024px) {
    .ecomDrawerDropdownBody {
        font-size: 16px;
        line-height: 22px;
    }
}

.ecomDrawerDropdown[data-state="open"] .ecomDrawerDropdownBody {
    padding-bottom: 20px;
}

.ecomDrawerDropdownBody p {
    margin: 0 0 12px;
}

.ecomDrawerDropdownBody p:last-child {
    margin-bottom: 0;
}

.ecomDrawerDropdownBody strong {
    color: var(--ecomColorAccent);
    font-weight: 600;
}

.ecomDrawerDropdownBody a {
    color: var(--ecomColorAccent);
    text-decoration: underline;
}

.ecomDrawerDropdownImage {
    display: block;
    width: 100%;
    height: 160px;
    margin-top: 12px;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .ecomDrawerDropdownImage {
        height: 280px;
    }
}

.ecomDrawerFooter {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding-top: 16px;
    padding-inline: 16px;
    border-top: 1px solid rgba(7, 59, 74, 0.1);
}

.ecomDrawerCloseButton {
    width: 100% !important;
    max-width: 343px !important;
    height: auto !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    border: 1px solid var(--ecomColorTextStrong) !important;
    border-radius: 53px !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--ecomColorTextStrong) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-transform: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        transform 150ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .ecomDrawerCloseButton:hover {
        background-color: var(--ecomColorTextStrong) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }
}

.ecomDrawerCloseButton:active {
    transform: translateY(0) scale(0.97);
    transition: transform 120ms ease-out !important;
}

.ecomDrawerCloseButton:focus-visible {
    outline: 2px solid var(--ecomColorAccent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ecomDrawerOverlay,
    .ecomDrawerPanel,
    .ecomDrawerClose,
    .ecomDrawerCloseButton,
    .ecomDrawerDropdownWrapper,
    .ecomDrawerDropdownChevron {
        transition: none !important;
    }
}
