#cartDrawer {
    --cart-inset: clamp(16px, 4vw, 24px);
    --cart-icon-green: #277347;
    color: #000;
    padding: 0;
}

@media (min-width: 601px) {
    #cartDrawer {
        width: 530px;
    }
}

#cartDrawer .cart-drawer-heading {
    flex: none;
    margin: 0;
    padding: 20px 64px 20px var(--cart-inset);
    border-bottom: 1px solid #dedede;
    color: #000;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

#cartDrawerCount {
    font-size: 15px;
    text-transform: none;
    white-space: nowrap;
}

#cartDrawer .drawer-close {
    top: 10px;
    right: var(--cart-inset);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ededed;
    color: var(--cart-icon-green);
    font-size: 30px;
    line-height: 1;
}

#cartDrawerContent {
    padding: 0;
}

#cartDrawerContent > .cart-items,
#cartDrawerContent > .cart-empty {
    padding-inline: var(--cart-inset);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#cartDrawer .cart-item {
    padding: 16px 0;
}

#cartDrawer .cart-item + .cart-item {
    border-top: 1px solid #e4e4e4;
}

#cartDrawer .cart-item-image {
    flex: 0 0 clamp(64px, 17vw, 84px);
    width: clamp(64px, 17vw, 84px);
    height: auto;
    aspect-ratio: 1;
    align-self: flex-start;
}

#cartDrawer .cart-item-image img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px;
}

#cartDrawer .cart-item-content {
    padding-inline: 14px 0;
    overflow-wrap: anywhere;
}

#cartDrawer .cart-item-name,
#cartDrawer .cart-item-details,
#cartDrawer .cart-config-action,
#cartDrawer .quantity-value,
#cartDrawer .cart-item-price,
#cartDrawer .cart-empty p {
    color: #000;
}

#cartDrawer .cart-detail,
#cartDrawer .cart-info-row > span {
    color: #68726c;
}

#cartDrawer .cart-item-details + .cart-item-config-actions {
    margin-top: 2px;
}

#cartDrawer .cart-customisation-details:not([open]) > summary {
    padding-bottom: 4px !important;
}

#cartDrawer .cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(4px, 1.5vw, 10px);
}

#cartDrawer .cart-item-price {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    margin: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

#cartDrawer .cart-quantity {
    justify-self: start;
}

#cartDrawer .quantity-btn,
#cartDrawer .cart-config-action span {
    color: var(--cart-icon-green);
}

#cartDrawer .cart-item-check {
    background: var(--cart-icon-green);
}

#cartDrawer .cart-item-remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    justify-self: end;
    color: var(--cart-icon-green);
}

#cartDrawer .cart-item-remove:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

#cartDrawerContent > .drawer-bottom {
    max-height: 55%;
    overflow-y: auto;
    padding: 12px var(--cart-inset) max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid #d5d5d5;
}

#cartDrawer .cart-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 13px;
}

#cartDrawer .cart-info-row svg,
#cartDrawer .cart-next-step-note svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--cart-icon-green);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

#cartDrawer .cart-fit-terms {
    color: var(--cart-icon-green);
    text-decoration: underline;
    font-size: 13px;
    text-underline-offset: 2px;
}

#cartDrawer .cart-summary-row.total {
    margin: 0;
    color: #000;
    font-size: 17px;
}

#cartDrawer .cart-checkout {
    margin-top: 8px;
    padding: 0;
}

#cartDrawer .cart-next-step-note,
#cartDrawer .cart-shipping-note {
    margin: 0 0 10px;
    color: #000;
    font-size: 12px;
    line-height: 1.4;
}

#cartDrawer .cart-next-step-note {
    display: flex;
    align-items: center;
    gap: 10px;
}
