/* Сброс min-width от глобального .light-button (230px на десктопе) */
.light-button.price-action-button:not(.price-action-button--link) {
    min-width: 0;
    max-width: 100%;
}

.card_controls .shop-card_all-offers-wrap {
    margin-top: 1px;
    width: 100%;
    text-align: left;
}

.card_controls .shop-card_all-offers-wrap .shop-offers-dialog-open.price-action-button--link {
    color: #f93f20;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-block;
    text-align: left;
}

.card_controls .shop-card_all-offers-wrap .shop-offers-dialog-open.price-action-button--link:hover,
.card_controls .shop-card_all-offers-wrap .shop-offers-dialog-open.price-action-button--link:focus {
    color: #f93f20 !important;
    text-decoration: underline;
    background: none !important;
}

dialog.shop-offers-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: min(520px, 96vw);
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

dialog.shop-offers-dialog[open] {
    margin: 7vh auto auto;
}

dialog.shop-offers-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

dialog.shop-offers-dialog .shop-offers-dialog__inner {
    padding: 16px 18px;
    position: relative;
}

dialog.shop-offers-dialog .shop-offers-dialog__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

dialog.shop-offers-dialog .shop-offers-dialog__title {
    font-size: 15px;
    line-height: 1.3;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

dialog.shop-offers-dialog .shop-offers-dialog__subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

dialog.shop-offers-dialog .shop-offers-dialog__close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 0;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
}

dialog.shop-offers-dialog .shop-offers-dialog__close::before,
dialog.shop-offers-dialog .shop-offers-dialog__close::after {
    content: '';
    position: absolute;
    left: 7px;
    right: 7px;
    top: 14px;
    border-top: 2px solid #333;
}

dialog.shop-offers-dialog .shop-offers-dialog__close::before {
    transform: rotate(45deg);
}

dialog.shop-offers-dialog .shop-offers-dialog__close::after {
    transform: rotate(-45deg);
}

dialog.shop-offers-dialog .shop-offers-dialog__scroll {
    max-height: 60vh;
    overflow: auto;
}

button.autolight-delivery-line.shop-offers-dialog-open,
button.autolight-delivery-line {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 400;
    font-size: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.autolight-delivery-line__text {
    min-width: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #6b7280;
}

button.autolight-delivery-line:hover .autolight-delivery-line__text,
button.autolight-delivery-line:focus .autolight-delivery-line__text,
button.autolight-delivery-line:active .autolight-delivery-line__text {
    color: #f93f20;
    background: transparent;
}

button.autolight-delivery-line:hover,
button.autolight-delivery-line:focus,
button.autolight-delivery-line:active {
    color: inherit;
    background: transparent;
    outline: none;
}

.autolight-delivery-line .autolight-delivery-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    box-sizing: border-box;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 0;
    font-weight: 400;
    line-height: 0;
    pointer-events: none;
}

button.autolight-delivery-line:hover .autolight-delivery-info-btn,
button.autolight-delivery-line:focus .autolight-delivery-info-btn {
    color: #f93f20;
    background: rgba(249, 63, 32, 0.08);
}

@media all and (min-width: 768px) {
    button.autolight-delivery-line.shop-offers-dialog-open,
    button.autolight-delivery-line {
        width: auto;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
        background: transparent;
        color: inherit;
        font-weight: 400;
        font-size: inherit;
        line-height: 1.3;
    }
}

.autolight-delivery-dialog__days-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.autolight-delivery-dialog__days-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.autolight-delivery-dialog__days-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.autolight-delivery-dialog__day-item {
    position: relative;
    padding: 0 0 0 14px;
    margin: 0;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    text-transform: capitalize;
}

.autolight-delivery-dialog__day-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.autolight-delivery-dialog__days-empty {
    font-size: 13px;
    color: #6b7280;
}

.autolight-delivery-dialog__pickups-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.autolight-delivery-dialog__pickups-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.autolight-delivery-dialog__pickup-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f9fafb;
}

.autolight-delivery-dialog__pickup-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.autolight-delivery-dialog__pickup-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px 10px;
    font-size: 13px;
    color: #111827;
    line-height: 1.35;
}

.autolight-delivery-dialog__pickup-label {
    color: #6b7280;
    font-weight: 500;
}

.autolight-delivery-dialog__pickup-row a {
    color: #111827;
    text-decoration: none;
}

.autolight-delivery-dialog__pickup-row a:hover {
    color: #f93f20;
}

@media (max-width: 480px) {
    .autolight-delivery-dialog__pickup-row {
        grid-template-columns: 1fr;
        gap: 1px;
    }
}

.autolight-delivery-dialog__cart-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.autolight-delivery-dialog__cart-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #16a34a;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.15);
}

.autolight-delivery-dialog__cart-hint-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: #374151;
}

.autolight-delivery-dialog__list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.autolight-delivery-dialog__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    align-items: start;
}

.autolight-delivery-dialog__row dt {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.autolight-delivery-dialog__row dd {
    margin: 0;
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.autolight-delivery-dialog__days {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.autolight-delivery-dialog__day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
}

.autolight-delivery-dialog__day.is-on {
    color: #166534;
    background: #dcfce7;
}

@media (max-width: 480px) {
    .autolight-delivery-dialog__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

dialog.shop-offers-dialog .shop-offers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

dialog.shop-offers-dialog .shop-offers-table th,
dialog.shop-offers-dialog .shop-offers-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

dialog.shop-offers-dialog .shop-offers-table__action {
    text-align: right;
    width: 1%;
}

dialog.shop-offers-dialog .shop-offers-table__in-stock {
    color: #15803d;
    font-weight: 600;
}

dialog.shop-offers-dialog .shop-offers-table__on-order {
    color: #f39a11;
    font-weight: 600;
}

dialog.shop-offers-dialog .shop-offers-table th {
    font-weight: 600;
    color: #333;
}

dialog.shop-offers-dialog .shop-offers-table__price {
    font-size: 18px;
    line-height: 1.2;
}

dialog.shop-offers-dialog .shop-offers-table__price .price_value {
    font-size: 18px;
    font-weight: 600;
}

dialog.shop-offers-dialog .shop-offers-table__price .price_fractional {
    font-size: 14px;
}

dialog.shop-offers-dialog .shop-offers-table__price .nbrb-icon {
    font-size: 24px;
    vertical-align: baseline;
    line-height: 1;
}

dialog.shop-offers-dialog .add-to-cart.add-to-cart__small {
    white-space: nowrap;
    width: auto !important;
    min-width: 120px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #fff !important;
    border: 1px solid #f93f20 !important;
    color: #f93f20 !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}

dialog.shop-offers-dialog .add-to-cart.add-to-cart__small span {
    white-space: nowrap;
}

dialog.shop-offers-dialog .add-to-cart.add-to-cart__small .cart-btn-icon {
    margin-right: 8px;
    line-height: 1;
}

.card_controls .add-to-cart.add-to-cart__small .cart-btn-icon {
    margin-right: 14px !important;
}

.cart-success-modal {
    max-width: min(420px, 96vw);
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 0;
    margin: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    max-height: none;
    box-sizing: border-box;
}

.cart-success-modal::backdrop {
    background: rgba(17, 24, 39, 0.5);
}

.cart-success-modal__inner {
    padding: 20px 18px 18px;
    background: #fff;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.cart-success-modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #7a7a7a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cart-success-modal__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cart-success-modal__title {
    margin: 0 32px 16px 0;
    color: #1f2937;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.cart-success-modal__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}

.cart-success-modal__btn {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e15757;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    box-sizing: border-box;
    padding: 0 12px;
    min-width: 0;
}

.cart-success-modal__btn--continue {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    color: #c73838;
}

.cart-success-modal__btn--continue:hover {
    background: #fff4f4;
}

.cart-success-modal__btn--cart {
    flex: 1 1 0;
    min-width: 0;
    background: #ff3a3a;
    border-color: #ff3a3a;
    color: #fff;
}

.cart-success-modal__btn--cart:hover {
    background: #ef2f2f;
    border-color: #ef2f2f;
}

@media (max-width: 767px) {
    .cart-success-modal {
        max-width: calc(100vw - 24px);
        width: calc(100vw - 24px);
        margin: auto;
        left: 0;
        right: 0;
    }

    .cart-success-modal__inner {
        padding: 18px 14px 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .cart-success-modal__title {
        margin: 0 36px 14px 0;
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .cart-success-modal__close {
        position: absolute;
        top: 8px;
        right: 8px;
        left: auto;
        bottom: auto;
        z-index: 2;
        margin: 0;
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .cart-success-modal__actions {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .cart-success-modal__btn {
        width: 100%;
        max-width: 100%;
        flex: none !important;
        white-space: normal;
        min-height: 44px;
        height: auto;
        padding: 10px 12px;
        line-height: 1.25;
    }

    .cart-success-modal__btn--continue {
        flex: none !important;
        white-space: normal;
    }

    .cart-success-modal__btn--cart {
        flex: none !important;
    }
}

@media (max-width: 1123px) {
    .card_controls .shop-card_all-offers-wrap {
        margin-top: 0 !important;
    }
}

.card_controls_v2.listing-price-loading,
.card_controls.listing-price-loading {
    min-height: 80px;
}

.listing-price-overlay-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.listing-price-overlay-spinner .shop-list-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(249, 63, 32, 0.2);
    border-top-color: #f93f20;
    border-radius: 50%;
    animation: listing-price-spin 0.8s linear infinite;
    flex-shrink: 0;
    box-sizing: border-box;
}

@keyframes listing-price-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.price-refresh-in-progress-note {
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.3;
}
