:root {
    --sheet-transition-time: 0.5s;
}

html.nbuxSheetOpen body {
  overflow: hidden;
}

.nbuxSheet[data-status="open"] {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.nbuxSheet__overlay {
    position: fixed;
    z-index: 1001;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black, #252525);
    opacity: 0;
    transition: none;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__overlay,
.nbuxSheet[data-status="closing"] .nbuxSheet__overlay {
    transition: opacity var(--sheet-transition-time) ease-in-out;
    top: 0;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__overlay,
.nbuxSheet[data-status="open"] .nbuxSheet__overlay {
    top: 0;
    opacity: 0.8;
}

.nbuxSheet__sheet {
    display: grid;
    grid-template-rows: auto 1fr;
    position: fixed;
    z-index: 1002;
    bottom: -100%;
    right: 0;
    width: 100%;
    height: calc(100% - 88px);
    box-sizing: border-box;
    transition: none;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__sheet,
.nbuxSheet[data-status="closing"] .nbuxSheet__sheet {
    transition: bottom var(--sheet-transition-time) ease-in-out;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__sheet,
.nbuxSheet[data-status="open"] .nbuxSheet__sheet {
    bottom: 0;
}

.nbuxSheet__header {
    border-radius: 8px 8px 0 0;
    display: flex;
    font-family: var(--font-primary, "poppins");
    font-size: var(--font-body-large-font-size, 20px);
    line-height: var(--font-body-large-line-height, 28px);
    font-weight: bold;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    background: var(--color-grey-100, #f8f8f8);
}

.nbuxSheet__content {
    padding: 16px;
    background: var(--color-white, #fefefe);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nbuxSheet__closeButton {
    position: fixed;
    z-index: 1003;
    top: -88px;
    right: 0;
    -webkit-appearance: none;
    border: 0;
    border-radius: 100px;
    width: 56px;
    height: 56px;
    margin: 16px;
    transition: none;
    background: var(--color-white, #fefefe);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nbuxSheet__closeButton_hide {
    display: none;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__closeButton,
.nbuxSheet[data-status="closing"] .nbuxSheet__closeButton {
    transition: top var(--sheet-transition-time) ease-in-out;
}

.nbuxSheet[data-status="opening"] .nbuxSheet__closeButton,
.nbuxSheet[data-status="open"] .nbuxSheet__closeButton {
    top: 0;
}

@media screen and (min-width: 768px) {
    .nbuxSheet__sheet {
        bottom: 0;
        right: -100%;
        height: 100%;
        box-sizing: border-box;
        transition: none;
        max-width: 428px;
    }

    .nbuxSheet[data-status="opening"] .nbuxSheet__sheet,
    .nbuxSheet[data-status="closing"] .nbuxSheet__sheet {
        transition: right var(--sheet-transition-time) ease-in-out;
    }

    .nbuxSheet[data-status="opening"] .nbuxSheet__sheet,
    .nbuxSheet[data-status="open"] .nbuxSheet__sheet {
        right: 0;
    }

    .nbuxSheet__header {
        border-radius: 0;
    }

    .nbuxSheet__closeButton {
        right: 428px;
    }
    
    .nbuxSheet__closeButton_hide {
        display: none;
    }    
}