.btn-cart-group {
    min-width: 0;
}

.btn-cart-group .cart-in-link,
.btn-cart-group > .cart-add {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-stepper {
    width: auto;
    flex: 0 0 auto;
    max-width: 100%;
}

.cart-stepper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.cart-stepper .form-control {
    min-width: 2.75rem;
    max-width: 3.25rem;
    padding: 0.35rem 0.15rem;
    box-shadow: none;
    border-color: var(--bs-secondary);
    background: #fff;
}

.cart-stepper .form-control:focus {
    box-shadow: none;
    border-color: var(--bs-secondary);
}

.goods-cart-btn .cart-stepper .btn,
.goods-cart-btn .cart-in-link {
    min-height: 2.75rem;
}

.header-mobile-tools {
    margin-left: auto;
    gap: 2px;
}

.header-mobile-action {
    padding: 0;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    overflow: visible;
}

.header-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--bs-orange);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.header-icon-badge[hidden] {
    display: none !important;
}

.header-search-input {
    color-scheme: dark;
}

.header-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.header-search-actions {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.header-search-actions button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}

.header-search-actions svg {
    display: block;
}

.header-search-clear[hidden] {
    display: none !important;
}

.product-tabs.nav-tabs {
    --bs-border-width: 1px;
    --bs-nav-tabs-border-width: 0;
    --bs-nav-tabs-border-color: transparent;
    --bs-nav-tabs-link-hover-border-color: transparent;
    --bs-nav-tabs-link-active-border-color: transparent;
    --bs-nav-tabs-link-active-color: var(--bs-darkgreen);
    --bs-nav-tabs-link-active-bg: transparent;
    --bs-nav-tabs-link-hover-bg: transparent;
    --bs-nav-link-color: var(--bs-darkgreen);
    --bs-nav-link-hover-color: var(--bs-orange);
    border-bottom: 1px solid color-mix(in srgb, var(--bs-darkgreen) 22%, transparent);
    gap: 1.35rem;
}

.product-tabs.nav-tabs .nav-link {
    margin-bottom: -1px;
    padding: 0.35rem 0 0.7rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: color-mix(in srgb, var(--bs-darkgreen) 68%, #fff) !important;
    font-weight: 600;
    box-shadow: none;
}

.product-tabs.nav-tabs .nav-link:hover,
.product-tabs.nav-tabs .nav-link:focus {
    color: var(--bs-orange) !important;
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--bs-orange);
}

.product-tabs.nav-tabs .nav-link.active,
.product-tabs.nav-tabs .nav-link.active:hover,
.product-tabs.nav-tabs .nav-link.active:focus {
    color: var(--bs-darkgreen) !important;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--bs-darkgreen);
}

.product-tabs.nav-tabs .nav-link:focus-visible {
    outline: 2px solid var(--bs-orange);
    outline-offset: 6px;
}

.review-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-left: 0;
    margin-right: auto;
}

#reviewSubmitBtn {
    position: relative;
}

#reviewSubmitBtn.is-loading .review-submit-text {
    visibility: hidden;
}

#reviewSubmitBtn.is-loading .review-submit-loader {
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.consent-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-left: 0;
    min-height: 0;
    gap: 0.75rem;
}

.consent-check .form-check-input {
    float: none;
    margin-top: 0.2em;
    margin-left: 0;
    margin-right: 0;
    flex: 0 0 auto;
}

.consent-check .form-check-label {
    flex: 1 1 0%;
    min-width: 0;
    padding-left: 0;
}

.consent-check .invalid-feedback {
    flex: 1 0 100%;
}

.consent-check .invalid-feedback:empty {
    display: none;
}

.checkout-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 1200px) {
    #checkout-delivery .consent-check .form-check-label {
        white-space: nowrap;
    }
}

.checkout-map {
    min-height: 360px;
    height: 360px;
    border-radius: 1rem;
    overflow: hidden;
    background: #eef2ef;
}

.checkout-map-wide {
    height: 480px;
    min-height: 480px;
}

.checkout-courier-shell {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.checkout-courier-shell .checkout-map {
    border-radius: 0;
}

.checkout-courier-search {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    z-index: 4;
}

.checkout-search-field {
    position: relative;
}

.checkout-courier-search-input,
.checkout-courier-search-input:hover,
.checkout-courier-search-input:focus,
.checkout-courier-search-input:active {
    border-radius: 999px;
    box-shadow: none;
    outline: none;
    background: #fff;
    padding-left: 1.05rem;
    padding-right: 2.6rem;
}

.checkout-courier-search-input::-webkit-search-cancel-button,
.checkout-courier-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.checkout-search-clear {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5c6b64;
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.checkout-search-clear:hover {
    background: #eef2ef;
    color: #1d2a24;
}

.checkout-search-clear[hidden] {
    display: none !important;
}

.checkout-search-field.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.55rem;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid #d7ddd9;
    border-top-color: var(--bs-darkgreen);
    border-radius: 50%;
    animation: checkout-spin 0.7s linear infinite;
}

.checkout-search-field.is-loading .checkout-search-clear {
    display: none !important;
}

.checkout-map-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 253, 244, 0.45);
    color: transparent;
    font-size: 0;
}

.checkout-map-loader[hidden] {
    display: none !important;
}

.checkout-map-loader::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid #d7ddd9;
    border-top-color: var(--bs-darkgreen);
    border-radius: 50%;
    animation: checkout-spin 0.7s linear infinite;
}

@keyframes checkout-spin {
    to { transform: rotate(360deg); }
}

.checkout-courier-suggest {
    margin-top: 0.4rem;
    max-height: 14rem;
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 14px 36px rgba(22, 48, 38, 0.16);
}

.checkout-courier-suggest-item {
    display: block;
    width: 100%;
    padding: 0.65rem 0.95rem;
    border: 0;
    background: transparent;
    text-align: left;
    color: #1d2a24;
    font-size: 0.9rem;
    line-height: 1.35;
}

.checkout-courier-suggest-item strong {
    display: block;
    font-weight: 600;
}

.checkout-courier-suggest-meta {
    display: block;
    margin-top: 0.1rem;
    color: #5c6b64;
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-courier-suggest-item:hover,
.checkout-courier-suggest-item:focus {
    background: color-mix(in srgb, var(--bs-darkgreen) 8%, #fff);
}

.checkout-courier-pin-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin: 2px 0 0 -5px;
    border-radius: 999px;
    background: rgba(22, 48, 38, 0.28);
    pointer-events: none;
}

.checkout-courier-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 56px;
    color: var(--bs-orange);
    pointer-events: none;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 8px 16px rgba(22, 48, 38, 0.28));
    transition: transform 0.18s ease;
}

.checkout-courier-pin.is-lifted {
    transform: translate(-50%, calc(-100% - 18px)) scale(1.06);
    filter: drop-shadow(0 14px 22px rgba(22, 48, 38, 0.32));
}

@media (max-width: 767.98px) {
    .checkout-method {
        gap: 0.6rem !important;
        align-items: center !important;
        padding: 0.55rem 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }

    .checkout-method .form-check-input {
        width: 1.05rem;
        height: 1.05rem;
        margin-top: 0 !important;
        flex: 0 0 auto;
    }

    .checkout-method strong {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .checkout-method .small {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .checkout-courier-search {
        left: 0.65rem;
        right: 0.65rem;
        top: 0.65rem;
    }
}

.checkout-map [class*="balloon__layout"],
.checkout-map [class*="balloon__content"],
.checkout-map [class*="balloon__shadow"] {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.checkout-pvz-balloon {
    position: relative;
    width: 280px;
    padding: 1.15rem 1.15rem 1.05rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(22, 48, 38, 0.18);
    color: #1d2a24;
}

.checkout-pvz-balloon-inner {
    max-width: 100%;
    padding-right: 1.7rem;
}

.checkout-pvz-balloon-inner ymaps,
.checkout-pvz-balloon-content {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.checkout-pvz-balloon-title,
.checkout-pvz-balloon-address,
.checkout-pvz-balloon-hours {
    overflow-wrap: break-word;
}

.checkout-pvz-balloon-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    width: 1.7rem;
    height: 1.7rem;
    border: 0;
    border-radius: 999px;
    background: #eef2ef;
    color: #3d4d45;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.checkout-pvz-balloon-title {
    display: block;
    padding-right: 0;
    margin: 0 0 0.4rem;
    color: var(--bs-darkgreen);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.checkout-pvz-balloon-address,
.checkout-pvz-balloon-hours {
    display: block;
    margin: 0 0 0.35rem;
    color: #5c6b64;
    font-size: 0.82rem;
    line-height: 1.4;
}

.checkout-pvz-balloon-select {
    width: 100%;
    margin-top: 0.55rem;
}

.checkout-pvz-balloon-arrow {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 4px 4px 10px rgba(22, 48, 38, 0.08);
}

.checkout-pvz-selected {
    position: relative;
    margin-top: 0.9rem;
    padding: 1.15rem 1.25rem 1.15rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px dashed color-mix(in srgb, var(--bs-darkgreen) 28%, #d7ddd9);
}

.checkout-pvz-selected.is-empty .checkout-pvz-selected-placeholder {
    display: block;
    color: #6b7a73;
}

.checkout-pvz-selected.is-active {
    border: 2px solid var(--bs-darkgreen);
    background: color-mix(in srgb, var(--bs-darkgreen) 8%, #fff);
    box-shadow: 0 12px 32px rgba(22, 70, 50, 0.14);
    overflow: hidden;
}

.checkout-pvz-selected.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--bs-orange);
}

.checkout-pvz-selected.is-active .checkout-pvz-selected-placeholder {
    display: none;
}

.checkout-pvz-selected-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--bs-orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checkout-pvz-selected-name {
    display: block;
    color: var(--bs-darkgreen);
    font-size: 1.05rem;
}

.checkout-pvz-selected-address,
.checkout-pvz-selected-hours {
    display: block;
    margin-top: 0.2rem;
    color: #5c6b64;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .checkout-summary {
        position: static !important;
        margin-top: 1.5rem;
    }

    .checkout-auth-actions .btn {
        width: 100%;
    }

    .checkout-map-wide {
        height: 360px;
        min-height: 360px;
    }
}

.home-news-card-photo {
    display: block;
    width: 100%;
    height: auto;
}

.home-news-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.favorites svg path {
    stroke: var(--bs-orange);
}

.favorites.active svg {
    fill: var(--bs-orange);
}

.goods-card-decoration {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.goods-card-decoration .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.goods-card-decoration .card-content {
    text-align: center;
}

.goods-card-decoration .card-content .link-darkgreen,
.goods-card-decoration .card-content .link-dark,
.search-result-desc,
.cart-line-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-card-decoration .card-content .link-darkgreen {
    -webkit-line-clamp: 2;
}

.goods-card-decoration .card-content .link-dark,
.search-result-desc,
.cart-line-desc {
    -webkit-line-clamp: 3;
}

.goods-card-decoration .btn-cart-group {
    margin-top: auto;
}

.goodsSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.goodsSwiper .swiper-slide > .card,
.goodsSwiper .goods-card-decoration {
    width: 100%;
}

.stars .star.star-0:before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23FAA010' stroke-width='1.5' stroke-linejoin='round' d='M12 3.2l2.35 5.18 5.65.62-4.22 3.78 1.2 5.52L12 15.9l-4.98 2.4 1.2-5.52-4.22-3.78 5.65-.62z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-result-title {
    margin-bottom: 0.35rem;
}

@media (max-width: 767.98px) {
    [data-cart-line] {
        display: grid !important;
        grid-template-columns: 5.25rem minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0.75rem;
        align-items: start;
        padding-bottom: 1.15rem;
    }

    [data-cart-line] > .cart-contant,
    [data-cart-line] .cart-line-actions {
        display: contents !important;
    }

    .cart-photo {
        grid-area: 1 / 1;
        width: 5.25rem;
        max-width: 5.25rem !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .cart-line-copy {
        grid-area: 1 / 2;
        padding: 0 !important;
        margin-top: -0.15rem;
    }

    .cart-line-copy > p {
        font-size: 0.9rem !important;
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }

    [data-cart-line] .pay_button-block {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    [data-cart-line] .cart-line-fav {
        grid-column: 1 / -1;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    .shop-heading-row {
        row-gap: 0.5rem;
    }

    /* Как на странице новостей: под крошками только mt-3, без my-5. */
    main > section.container.my-5:first-child,
    main > section.container.mt-5:first-child,
    main > section.container-fluide:first-child > .container.my-5,
    main > .container.my-5:first-child {
        margin-top: 0 !important;
    }

    main > section.container.my-5:first-child:not(:has(> .row > .mt-3)),
    main > section.container.mt-5:first-child:not(:has(> .row > .mt-3)),
    main > section.container-fluide:first-child > .container.my-5:not(:has(.mt-3)),
    main > .container.my-5:first-child:not(:has(.mt-3)) {
        padding-top: 1rem;
    }

    main > .container.my-5:first-child > .row.py-5 {
        padding-top: 0 !important;
    }
}
