.backpack__page * {
    box-sizing: border-box;
}
.backpack__page {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: calc(100vh - 60px);
    opacity: 0;
    padding: 5rem 1.5rem 2.5rem 1.5rem;
    background-color: var(--ohto-palest-gold);
    transition: opacity 120ms ease-in-out;
    pointer-events: none;
}
.backpack__page.active {
    position: fixed;
    opacity: 1;
    pointer-events: all;
}
.backpack__page button:not(.button) {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    outline: 0;
}
.backpack__page__container {
    width: 600px;
    max-width: 100%;
    height: 500px;
    margin-left: auto;
    margin-right: auto;
}
.backpack--empty {
    width: 100%;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    padding-left: 14px;
    padding-right: 14px;
    border: solid 1px var(--ohto-bone);
    border-radius: 15px;
    background-color: var(--ohto-pale-gold);
}
.backpack--empty span {
    color: var(--ohto-red);
}
.backpack__header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--ohto-sans);
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.02em;
}
.backpack__header.icon--before::before {
    content: "";
    display: inline-block;
    position: relative;
    left: 0;
    width: 32px;
    height: 32px;
    margin-bottom: -8px;
    margin-right: 8px;
    background-image: url(/themes/comewander2022/img/icons/icon-backpack-md.png);
    background-size: contain;
    background-repeat: no-repeat;
}
@media (min-width: 768px) {
    .backpack__header {
        font-size: 24px;
        line-height: 29px;
    }
    .backpack__header.icon--before::before {
        width: 45px;
        height: 45px;
        margin-bottom: -12px;
        background-image: url(/themes/comewander2022/img/icons/icon-backpack-md.png);
    }
}
.backpack__items {
    position: relative;
    min-height: 250px;
    max-height: calc(100vh - 320px);
    padding: 0.75rem;
    border: solid 1px var(--ohto-bone);
    border-radius: 15px;
    background-color: var(--ohto-pale-gold);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D8CEB6 transparent;
}
.backpack__items::-webkit-scrollbar, .backpack__items--nearby::-webkit-scrollbar {
    width: 8px;
}
.backpack__items::-webkit-scrollbar-track, .backpack__items--nearby::-webkit-scrollbar-track {
    background: transparent;
}
.backpack__items::-webkit-scrollbar-thumb, .backpack__items--nearby::-webkit-scrollbar-thumb {
    background-color: #D8CEB6;
    border-radius: 20px;
    border: none;
}
.backpack__item__container {
    display: flex;
    align-items: center;
    width: 480px;
    max-width: 100%;
}
.backpack__item {
    position: relative;
    display: flex;
    width: 418px;
    max-width: 100%;
    margin: 3px 6px;
    padding: 7px;
}
.backpack__item__click {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: all;
    cursor: pointer;
}
.backpack__item > .item__thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 53px;
    height: 53px;
    border-radius: 100%;
    background-color: var(--ohto-bone);
}
.backpack__item > .item__thumbnail > img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.backpack__item > .item__body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
}
.backpack__item .item__title {
    grid-row: 1/2;
    font-family: var(--ohto-sans);
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
}
.backpack__item .item__meta {
    font-family: var(--ohto-sans);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--ohto-medium-brown);
}

.backpack__slide {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    background-color: #FFFCF5;
    width: 540px;
    height: calc(100vh - 120px);
    max-width: 100%;
    margin-top: 60px;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
    transform: translate(105%, 0);
    transition: transform 400ms cubic-bezier(0.45, 0, 0, 0.86);
}
.backpack__slide.active {
    transform: translate(0,0);
}
@media (min-width: 401px) {
    .backpack__slide {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 768px) {
    .backpack__items {
        min-height: 450px;
    }
    .backpack__page {
        height: 100vh;
    }
    .backpack__slide {
        height: calc(100vh - 75px);
        margin-top: 75px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .backpack__item--lg {
        height: calc(100% - 120px)
    }
}
.backpack__slide__close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1;
    padding: 10px;
    font-family: var(--ohto-sans);
    font-weight: 600;
    font-size: 11px;
    line-height: 16px;
    color: var(--ohto-medium-brown);
    cursor: pointer;
}
.backpack__slide__close::after {
    content: "";
    position: relative;
    display: inline-flex;
    top: 8px;
    right: -8px;
    width: 10px;
    height: 24px;
    background-image: url(/themes/comewander2022/img/icons/icon-back-arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.button--remove {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    border-radius: 100%;
    overflow: visible;
    background-image: url(/themes/comewander2022/img/ui/button-close.svg);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}
.button--remove:hover {
    filter: brightness(1.3);
}
.button--add {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}
.button--add[data-operator-added='false'] {
    border-radius: 100%;
    overflow: visible;
    background-image: url(/themes/comewander2022/img/ui/button-add.svg);
    cursor: pointer;
}
.button--add[data-operator-added='false']:hover, .button--add[data-operator-added='false']:active {
    filter: brightness(0.9);
}

.button--add[data-operator-added='true'] {
    background-image: url(/themes/comewander2022/img/icons/icon-backpack-md.png);
}

.backpack__item--lg {
    position: relative;
    width: 380px;
    height: 100%;
    max-width: 100%;
}
.backpack__item--lg > .item__body {
    display: flex;
    margin-bottom: 1rem;
}
.backpack__item--lg > .item__body .item__thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background-color: var(--ohto-bone);
}
.backpack__item--lg > .item__body .item__thumbnail > img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.backpack__item--lg .item__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}
.backpack__item--lg .item__address {
    margin-bottom: 8px;
    font-family: var(--ohto-sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--ohto-medium-brown);
}
.backpack__item--lg > .item__body .item__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: var(--ohto-sans);
    font-size: 15px;
    line-height: 18px;
}
.backpack__item--lg .item__meta > a {
    column-span: 1;
    color: var(--ohto-red);
}
.backpack__item--lg .item__map {
    height: 0;
    padding-bottom: 50%;
}
.backpack__item--lg .item__map > img {
    position: absolute;
    width: 100%;
    border: solid 1px var(--ohto-bone);
    border-radius: 15px;
    overflow: hidden;
}
.backpack__items--lg .items__actions {
    margin-top: 1.25rem;
}
.backpack__item--lg label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.button.theme--dark {
    background-color: var(--ohto-medium-brown);
    cursor: pointer;
}
.backpack__items--nearby {
    position: relative;
    width: 100%;
    min-height: unset;
    max-height: 100%;
    margin-right: 2rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border: solid 1px var(--ohto-bone);
    border-radius: 0;
    background-color: var(--ohto-pale-gold);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D8CEB6 transparent;
}
.backpack__items--nearby .backpack__item {
    cursor: default;
}
.container__nearby {
    position: relative;
    flex-grow: 1;
    width: 100%;
    padding-bottom: 1rem;
    overflow: hidden;
}
.container__nearby label {
    padding: 12px 6px;
    color: var(--ohto-medium-brown);
}
.form--backpack-email {
    padding: 1rem 1rem 3rem;
}
@media (max-width: 400px) {
    .container__nearby {
        width: calc(100% + 2rem);
        margin-left: -1rem !important;
        margin-right: -1rem !important;
    }
}
@media (max-width: 860px) {
    .container__nearby {
        padding-bottom: 10rem;
    }
    .form--backpack-email {
        flex-wrap: wrap;
        padding: 2rem 2rem 10rem;
    }
}



.backpack__page {
    overflow-y: auto;
}
.backpack__slide {
    overflow-y: auto;
}
.container__nearby {
    overflow: visible;
}
.backpack__items--nearby {
    max-height: unset;
}

@media (max-width: 520px) {
    .backpack__slide {
        padding-top: 2rem;
    }
    .backpack__slide__close {
        top: 8px;
        right: 10px;
    }
}


.user-logged-in .backpack__page {
    top: var(--navbar-height, 54px);
}
.user-logged-in .backpack__page {
    height: calc(100vh - 64px);
}
.user-logged-in .backpack__slide {
    max-height: calc(100vh - 125px);
    margin-top: 125px;
}

