.dd-rec-wrap--adaptive {
    display: none;
}

@media (max-width: 991px) {
    .dd-rec-wrap--side {
        display: none !important;
    }

    .dd-rec-wrap--adaptive {
        display: block;
    }
}

.dd-rec {
    margin-top: 14px;
    padding: 16px 14px 12px;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
}

.dd-rec__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dd-rec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #71769f !important;
    flex: 0 0 auto;
    line-height: 0;
}

.dd-rec__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.dd-rec__item {
    padding: 12px 0;
    border-top: 1px solid #eceff3;
}

.dd-rec__list > .dd-rec__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.dd-rec__extras {
    overflow: hidden;
}

.dd-rec__extras[hidden] {
    display: none;
}

.dd-rec__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.dd-rec__pic {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eceff3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-rec__pic img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.dd-rec__pic-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: #f0f1f3;
}

.dd-rec__info {
    flex: 1 1 auto;
    min-width: 0;
}

.dd-rec__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    text-decoration: none;
    margin-bottom: 6px;
}

.dd-rec__name:hover {
    color: var(--theme-base-color, #71769f);
}

.dd-rec__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dd-rec__price {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: -0.01em;
}

.dd-rec__old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.dd-rec__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.dd-rec__controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.dd-rec__qty {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid #eeeeee;
    border-color: var(--stroke_black, #eeeeee);
    border-radius: 3px;
    background: #fafafa;
    background-color: var(--darkerblack_bg_black, #fafafa);
    overflow: hidden;
    flex: 0 0 114px;
    box-sizing: border-box;
    user-select: none;
}

.dd-rec__qty-btn {
    width: 34px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--white_text_black, #333);
    opacity: .5;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dd-rec__qty-btn:hover {
    color: var(--theme-base-color, #71769f);
    opacity: 1;
    background: transparent;
}

.dd-rec .dd-rec__qty-input,
.dd-rec input.dd-rec__qty-input,
.dd-rec input[type="text"].dd-rec__qty-input,
#main .dd-rec input[type="text"].dd-rec__qty-input {
    width: 46px !important;
    height: 40px !important;
    border: 0 !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--white_text_black, #333) !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.dd-rec__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--theme-base-color, #71769f);
    border-radius: 3px;
    background: var(--theme-base-color, #71769f);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dd-rec__add:hover:not(:disabled):not(.is-in-basket) {
    background-color: var(--theme-base-color, #71769f);
    border-color: var(--theme-base-color, #71769f);
    color: #fff;
    opacity: .92;
}

.dd-rec__add-label,
.dd-rec__add-ok {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.dd-rec__add-label svg,
.dd-rec__add-ok svg {
    flex: 0 0 auto;
}

.dd-rec__add.is-in-basket,
.dd-rec__add.is-in-basket:disabled {
    border-color: #4caf50;
    background: #4caf50;
    color: #fff;
    cursor: default;
    opacity: 1;
}

.dd-rec__add.is-loading {
    opacity: .7;
    pointer-events: none;
}

.dd-rec__toggle,
.dd-rec__toggle .dd-rec__toggle-text,
.dd-rec__toggle .dd-rec__toggle-hide,
.dd-rec__toggle .dd-rec__chevron {
    color: #71769f !important;
}

.dd-rec__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dd-rec__toggle:hover,
.dd-rec__toggle:hover .dd-rec__toggle-text,
.dd-rec__toggle:hover .dd-rec__toggle-hide {
    color: #5f648a !important;
}

.dd-rec__toggle-hide {
    display: none;
}

.dd-rec__toggle[data-expanded="Y"] .dd-rec__toggle-text {
    display: none;
}

.dd-rec__toggle[data-expanded="Y"] .dd-rec__toggle-hide {
    display: inline;
}

.dd-rec__chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .2s ease;
    text-decoration: none;
}

.dd-rec__toggle[data-expanded="Y"] .dd-rec__chevron {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .dd-rec {
        margin-top: 12px;
        padding: 14px 12px 10px;
    }

    .dd-rec__head {
        margin-bottom: 14px;
    }

    .dd-rec__top {
        gap: 10px;
    }

    .dd-rec__pic {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .dd-rec__controls {
        gap: 6px;
    }

    .dd-rec__qty {
        flex-basis: 102px;
        height: 38px;
    }

    .dd-rec__qty-btn,
    .dd-rec__qty-input {
        height: 38px;
    }

    .dd-rec__qty-btn {
        width: 30px;
    }

    .dd-rec__qty-input {
        width: 42px;
    }

    .dd-rec__add {
        min-height: 38px;
        height: 38px;
        border-radius: 3px;
    }

    .dd-rec__price {
        font-size: 15px;
    }
}
