.tj-drawer[hidden] {
    display: none !important;
}

html.tj-drawer-lock,
body.tj-drawer-lock {
    overflow: hidden;
}

.tj-drawer {
    --tj-drawer-width: 480px;
    --tj-drawer-duration: 240ms;
    position: fixed;
    z-index: 10020;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    isolation: isolate;
}

.tj-drawer--contained {
    position: absolute;
}

.tj-drawer.is-open {
    pointer-events: auto;
}

.tj-drawer__overlay {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(35, 29, 26, .42);
    cursor: pointer;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity var(--tj-drawer-duration) ease;
}

.tj-drawer__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100%, var(--tj-drawer-width));
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
    color: var(--tj-new-black, #333333);
    box-shadow: -18px 0 52px rgba(51, 42, 38, .16);
    transform: translateX(100%);
    transition: transform var(--tj-drawer-duration) cubic-bezier(.22, .61, .36, 1);
}

.tj-drawer.is-open .tj-drawer__overlay {
    opacity: 1;
}

.tj-drawer.is-open .tj-drawer__panel {
    transform: translateX(0);
}

.tj-drawer__panel:focus {
    outline: 0;
}

.tj-drawer__header {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
}

.tj-drawer__body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.tj-drawer__footer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.tj-drawer__close {
    position: relative;
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dfd4cd;
    border-radius: 50%;
    background: transparent;
    color: #604a43;
    cursor: pointer;
    font: inherit;
}

.tj-drawer__close > span {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    font-size: 0;
}

.tj-drawer__close > span::before,
.tj-drawer__close > span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 1px;
    background: currentColor;
    content: "";
}

.tj-drawer__close > span::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tj-drawer__close > span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.tj-drawer__close:hover,
.tj-drawer__close:focus-visible {
    border-color: var(--tj-brown, #b27463);
    background: var(--tj-sand, #faf7f2);
    color: var(--tj-brown, #b27463);
    outline: 0;
}

@media (max-width: 720px) {
    .tj-drawer__panel {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tj-drawer__overlay,
    .tj-drawer__panel {
        transition-duration: .01ms;
    }
}
