.basket_overlay::-webkit-scrollbar {
    display: none;
}

.basket_overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    display: none;
    flex-direction: column;
    padding: 16px;
    background-color: var(--light);
    z-index: 1001;
    overflow-y: scroll;
}

.basket_overlay[data-active="true"] {
    display: flex;
}

.basket {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 16px;
}

.basket_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--sage);
}

.basket_header_group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}

.basket_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
}

.basket_count {
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
}

.basket_total {
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
}

.basket_total span:nth-child(1) {
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.5;
}

.basket_body {
    width: 100%;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
}

.basket_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.basket_message_description {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--sage);
}

.basket_message_link {
    width: 100%;
    max-width: 192px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out
}

.basket_message_link:focus,
.basket_message_link:active {
    color: var(--light);
    background-color: var(--sage);
}

.basket_checkout_nudge {
    width: 100%;
    font-size: 12px;
    text-align: center;
}

.basket_checkout_link {
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.basket_checkout_link:focus,
.basket_checkout_link:active {
    color: var(--light);
    background-color: var(--sage);
}

.basket_checkout_link[disabled="disabled"] {
    pointer-events: none;
    opacity: 0.5;
}

.basket_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket_list_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--sage);
    border-radius: 8px;
}

.basket_list_item_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sage);
}

.basket_list_item_name {
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
}

.basket_list_item_delete {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.basket_list_item_delete:focus,
.basket_list_item_delete:active {
    color: var(--light);
    background-color: var(--sage);
}

#bin_icon {
    width: 24px;
    height: 24px;
    display: block;
}

.basket_list_item_delete:focus #bin_icon .fill,
.basket_list_item_delete:active #bin_icon .fill {
    fill: var(--light);
}

.basket_list_item_delete[disabled="disabled"] {
    pointer-events: none;
    opacity: 0.5;
}

.basket_list_item_body {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.basket_list_item_group {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket_list_item_label {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sage);
}

.basket_list_item_input {
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
}

@media only screen and (min-width: 768px) {
    .basket_overlay {
        height: calc(100% - 112px);
    }
}

@media only screen and (min-width: 960px) {
    .basket_message_link:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    .basket_checkout_link:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    .basket_list_item_delete:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    .basket_list_item_delete:hover #bin_icon .fill {
        fill: var(--light);
    }
}