/* =========================================================
   GAVETA DO CARRINHO COMO NO V2
   "Seu carrinho", itens com foto de 76px, "Remover" discreto, subtotal em
   destaque, aviso de frete, "Finalizar compra" e "Continuar comprando".
   Medidas do site de referência.
   ========================================================= */

dialog.cart-drawer {
    width: min(420px, 100vw);
    max-width: 100vw;
}

.cart-drawer .cart-drawer__panel {
    width: 100%;
}

.cart-drawer .cart-drawer__header {
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e3e9f1;
}

.cart-drawer .cart-drawer__header h2 {
    margin: 0;
    color: #061c40;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.cart-drawer .cart-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f7fb;
    color: #061c40;
}

.cart-drawer .cart-drawer__close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.cart-drawer .cart-drawer__content {
    padding: 6px 20px;
}

.cart-drawer .cart-drawer__line {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e3e9f1;
}

.cart-drawer .cart-drawer__media,
.cart-drawer .cart-drawer__media img {
    width: 76px;
    height: 76px;
    border-radius: 10px;
}

.cart-drawer .cart-drawer__media {
    overflow: hidden;
    background: #f4f7fb;
}

.cart-drawer .cart-drawer__media img {
    object-fit: cover;
}

.cart-drawer .cart-drawer__name {
    color: #061c40;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

.cart-drawer .cart-drawer__option,
.cart-drawer .cart-drawer__unit-price {
    margin-top: 3px;
    color: #5b6b82;
    font-size: 11.5px;
}

.cart-drawer .cart-drawer__line-footer {
    align-items: center;
    margin-top: 10px;
}

.cart-drawer .cart-drawer__line-total {
    color: #061c40;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-drawer .cart-drawer__remove {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #5b6b82;
    font-size: 11px;
    font-weight: 400;
    text-decoration: underline;
}

.cart-drawer .cart-drawer__footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #e3e9f1;
    background: #ffffff;
}

.cart-drawer .cart-drawer__totals {
    margin: 0;
}

.cart-drawer .cart-drawer__totals > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0;
    border: 0;
}

.cart-drawer .cart-drawer__totals dt {
    color: #5b6b82;
    font-size: 14px;
    font-weight: 400;
}

.cart-drawer .cart-drawer__totals dd {
    margin: 0;
    color: #061c40;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cart-drawer .cart-drawer__note {
    margin: 4px 0 0;
    color: #5b6b82;
    font-size: 11.5px;
}

.cart-drawer .cart-drawer__view-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 14px;
    border-radius: 10px;
    background: #061c40;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
}

.cart-drawer .cart-drawer__view-cart:hover {
    background: #1a5db6;
}

.cart-drawer .cart-drawer__continue-form {
    margin: 0;
}

.cart-drawer .cart-drawer__continue {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 0;
    background: none;
    color: #1a5db6;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
