.carrito-modal {
    background: rgba(17, 22, 34, 0.62);
    backdrop-filter: blur(2px);
}

.carrito-modal .modal-dialog {
    max-width: 540px;
    width: calc(100% - 2rem);
}

.carrito-modal-content {
    border: 0;
    border-radius: 26px;
    background: #fbfaf7;
    overflow: hidden;
    box-shadow: 0 28px 48px rgba(20, 24, 34, 0.24);
}

.carrito-modal-media {
    position: relative;
    height: 150px;
    background: linear-gradient(180deg, #fffaf0, #f7f3ea);
}

.carrito-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrito-modal-header {
    padding: 0.95rem 1.05rem 0.1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 0;
}

.carrito-modal-head-copy {
    min-width: 0;
}

.carrito-modal-title {
    margin: 0;
    text-align: left;
    color: #1d2430;
    font-size: clamp(1.35rem, 1.9vw, 1.9rem);
    line-height: 1.02;
    font-weight: 800;
}

.carrito-modal-subtitle {
    margin: 0.4rem 0 0;
    color: #71707a;
    font-size: 0.84rem;
    font-weight: 500;
}

.carrito-modal-actions-head {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.carrito-favorite-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(233, 84, 92, 0.08);
    color: #dd4c57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-favorite-btn svg {
    width: 20px;
    height: 20px;
}

.carrito-favorite-btn.is-active {
    background: rgba(233, 84, 92, 0.14);
    color: #d93d4a;
}

.carrito-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(31, 35, 48, 0.06);
    color: #7c7984;
    font-size: 1.35rem;
    line-height: 1;
}

.carrito-modal-body {
    display: grid;
    gap: 0.8rem;
    padding: 0 1.05rem 1.1rem;
}

.carrito-modal-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carrito-qty-box,
.carrito-price-pill {
    min-height: 56px;
    padding: 0 0.75rem;
    border-radius: 15px;
    background: #f1f1ef;
}

.carrito-qty-box {
    min-width: 185px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.carrito-price-pill {
    min-width: 128px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #267a4d;
    font-size: 1.35rem;
    font-weight: 800;
}

.carrito-qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5d6a6f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-qty-btn svg {
    width: 20px;
    height: 20px;
}

.carrito-qty-btn.is-add {
    background: #2f8458;
    color: #ffffff;
    box-shadow: 0 14px 20px rgba(47, 132, 88, 0.18);
}

.carrito-qty-value {
    min-width: 2ch;
    text-align: center;
    color: #1e2330;
    font-size: 1.45rem;
    font-weight: 800;
}

.carrito-divider {
    height: 1px;
    background: rgba(31, 35, 48, 0.12);
}

.carrito-group {
    display: grid;
}

.carrito-group-title {
    margin: 0 0 0.7rem;
    color: #1d2430;
    font-size: 1.12rem;
    font-weight: 800;
}

.carrito-choice {
    min-height: 58px;
    padding: 0 0.35rem;
    border: 0;
    border-top: 1px solid rgba(31, 35, 48, 0.09);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: #1b2230;
    text-align: left;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.carrito-choice:last-child {
    border-bottom: 1px solid rgba(31, 35, 48, 0.09);
}

.carrito-choice:hover,
.carrito-choice:focus-visible {
    background: rgba(47, 132, 88, 0.04);
}

.carrito-choice-control {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid #d8d8de;
    background: #ffffff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-choice-control svg {
    width: 14px;
    height: 14px;
}

.carrito-choice.is-selected .carrito-choice-control {
    border-color: #2f8458;
    background: #2f8458;
    color: #ffffff;
}

.carrito-choice.is-selected {
    background: rgba(47, 132, 88, 0.05);
}

.carrito-choice.is-radio .carrito-choice-control {
    border-radius: 999px;
}

.carrito-choice.is-radio.is-selected .carrito-choice-control {
    background: #ffffff;
    color: transparent;
    box-shadow: inset 0 0 0 7px #2f8458;
}

.carrito-choice-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.carrito-choice-price {
    font-size: 0.88rem;
    font-weight: 700;
}

.carrito-note {
    display: grid;
    gap: 0.8rem;
}

.carrito-note-toggle {
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    background: transparent;
    color: #293141;
    font-size: 0.86rem;
    font-weight: 700;
}

.carrito-note-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #f1f1ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carrito-note-toggle-icon svg {
    width: 14px;
    height: 14px;
}

.carrito-note-input {
    min-height: 78px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 36, 50, 0.12);
    background: #ffffff;
    resize: none;
    font-size: 0.9rem;
}

.carrito-submit-btn {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: #2f8458;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(47, 132, 88, 0.18);
}

@media (max-width: 767.98px) {
    .carrito-modal .modal-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .carrito-modal-content {
        border-radius: 24px;
    }

    .carrito-modal-media {
        height: 150px;
    }

    .carrito-modal-header,
    .carrito-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carrito-modal-header {
        align-items: center;
        padding-top: 0.9rem;
    }

    .carrito-modal-head-copy {
        flex: 1;
        text-align: center;
    }

    .carrito-modal-title {
        font-size: 1.45rem;
        text-align: center;
    }

    .carrito-modal-subtitle {
        font-size: 0.88rem;
        text-align: center;
    }

    .carrito-price-pill {
        min-width: 0;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
    }
}
