.cb-field-copy {
    position: relative;
}

.cb-field-copy__btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background-color: transparent;
    border: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-field-copy__btn:hover {
    opacity: 1;
}

.modal-basket-share__status {
    text-align: center;
}

.cb-field-copy__input {
    padding-right: 60px !important;
}

.modal-basket-share .cb-modal__title {
    font-size: 30px;
}

.cart-share {
    max-width: 1200px;
    margin: 30px 0;
}

.cart-share__title {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2D2D2D;
}

.cart-share-count {
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    color: #A9A9A9;
    white-space: nowrap;
}

.cart-share-title {
    font-weight: 500;
    font-size: 24px;
    line-height: 110%;
    margin: 0;
}

.cart-share__items {
    display: flex;
    flex-direction: column;
    gap: 54px;
    margin-bottom: 48px;
    position: relative;
}

.cart-share-item {
    display: grid;
    gap: 21px;
    color: #2D2D2D;
    width: 100%;
    grid-template-columns: 140px 1fr 96px 135px 20px;
    grid-template-areas: "image body quantity sum actions";
    align-items: center;
}

.cart-share-item__image-wrap {
    width: 140px;
    height: 140px;
    overflow: hidden;
    background-color: #F5F5F7;
    border-radius: 20px;
    flex-shrink: 0;
    grid-area: image;
}

.cart-share-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-share-item__body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-area: body;
}

.cart-share-item__description {
    font-weight: 400;
    font-size: 15px;
    line-height: 130%;
}

.cart-share-item__name {
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
}

.cart-share-item__reviews {
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    color: #A9A9A9;
    margin-bottom: 5px;
}

.cart-share-item__price-wrap {
    display: flex;
    gap: 5px;
    align-items: center;
}

.cart-share-item__price {
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
}

.cart-share-item__old-price {
    color: #A9A9A9;
    text-decoration: line-through;
}

.cart-share-item__quantity {
    grid-area: quantity;
}

.is-sum-animated {
    animation: sum-pulse .35s ease;
}

@keyframes sum-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.cart-share-item__remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D2D2D;
    transition: all 0.3s;
    border: none;
    outline: 0;
    background: none;
}

.cart-share-item__remove > svg {
    flex-shrink: 0;
}

.cart-share-item__remove:hover {
    color: #285B4D;
}

.cart-share__total {
    font-weight: 400;
    font-size: 17px;
    line-height: 130%;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
    justify-content: end;
}

.cart-share__total-price {
    font-weight: 500;
    font-size: 32px;
    line-height: 100%;
}

.fademove-move,
.fademove-enter-active,
.fademove-leave-active {
    transition: all 0.5s ease;
}

.fademove-enter-from,
.fademove-leave-to {
    opacity: 0;
    transform: translateY(-150px);
}

.fademove-leave-active {
    width: calc(100% - 40px);
}

/* Контейнер */
.quantity-editor {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 999px;
    padding: 2px;
    user-select: none;
    transition: opacity 0.2s ease;
    border: 1px solid #285b4d;
}

.quantity-editor.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Кнопки */
.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 45px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #374151; /* Темно-серый цвет иконок */
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.quantity-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

input[type="text"].quantity-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    background-color: #f3f4f6;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.cart-share-item__sum {
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    will-change: transform;
    grid-area: sum;
}

.cart-share-item__actions {
    grid-area: actions;
}

.cart-share__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

@media (min-width: 768px) {
    .cart-share-item__description {
        font-size: 17px;
    }

    .cart-share-item__name {
        font-size: 24px;
    }

    .cart-share__title {
        margin-bottom: 48px;
    }

    .cart-share-title {
        font-size: 44px;
    }

    .cart-share-item__reviews {
        margin-bottom: 15px;
    }

    .cart-share__total {
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    .cart-share-item {
        grid-template-columns: 140px 1fr 20px;
        grid-template-areas:
            "image body actions"
            "quantity sum sum";
        align-items: start;
        gap: 10px;
    }

    .cart-share-item__quantity {
        display: flex;
        justify-content: center;
    }

    .cart-share-item__sum {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .modal-basket-share .cb-modal__content {
        padding: 15px;
    }

    .modal-basket-share .cb-modal__header {
        right: 15px;
        top: 15px;
    }
}