.promotion-condition-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.promotion-condition-modal.is-open {
    display: flex;
}

.promotion-condition-modal__inner {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: promotion-modal-pop 0.18s ease-out;
}

@keyframes promotion-modal-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.promotion-condition-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
}

.promotion-condition-modal__close:hover { color: #333; }

.promotion-condition-modal__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 8px;
}

.promotion-condition-modal__label {
    font-size: 14px;
    color: #777;
    margin-bottom: 16px;
}

.promotion-condition-modal__list {
    text-align: left;
    margin-bottom: 16px;
}

.promotion-section {
    margin-bottom: 16px;
}

.promotion-section:last-child {
    margin-bottom: 0;
}

.promotion-section__title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.promotion-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

.promotion-card:last-child {
    margin-bottom: 0;
}

.promotion-card--exclusive {
    cursor: pointer;
}

.promotion-card--combinable {
    cursor: default;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.promotion-card.is-selected {
    border-color: var(--primary-color, #0d6efd);
    background: var(--primary-color-5, rgba(13, 110, 253, 0.05));
}

.promotion-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.promotion-card__radio {
    margin-top: 3px;
    flex-shrink: 0;
}

.promotion-card__content {
    flex: 1;
    min-width: 0;
}

.promotion-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.promotion-card__bonus {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.promotion-card__badge {
    display: inline-block;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 6px;
    vertical-align: 1px;
}

.promotion-condition-modal__btn {
    background: var(--primary-color, #0d6efd);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s ease;
}

.promotion-condition-modal__btn:hover:not(:disabled) {
    background: var(--primary-color-dark, #084298);
}

.promotion-condition-modal__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- step wizard ---- */

.promotion-step-info {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.promotion-step-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.promotion-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.promotion-step-dot:hover {
    transform: scale(1.2);
}

.promotion-step-dot.is-active {
    background: var(--primary-color, #0d6efd);
}

.promotion-step-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.promotion-step-nav__btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.promotion-step-nav__btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.promotion-step-nav__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.promotion-step-nav__btn--next {
    background: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    color: #fff;
}

.promotion-step-nav__btn--next:hover:not(:disabled) {
    background: var(--primary-color-dark, #084298);
    border-color: var(--primary-color-dark, #084298);
}

/* ---- promotion-block ---- */

.promotion-block {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.promotion-block:last-child {
    margin-bottom: 0;
}

.promotion-block__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.promotion-block__radio {
    margin-top: 4px;
    flex-shrink: 0;
}

.promotion-block__header-text {
    flex: 1;
    min-width: 0;
}

.promotion-block__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.promotion-block__badge {
    display: inline-block;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 6px;
    vertical-align: 1px;
}

.promotion-block__subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.promotion-block__empty {
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 0;
    font-style: italic;
}

.promotion-block__loading {
    font-size: 13px;
    color: #6b7280;
    padding: 12px 0;
    text-align: center;
}

.promotion-block__loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #d1d5db;
    border-top-color: var(--primary-color, #0d6efd);
    border-radius: 50%;
    animation: promo-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.promotion-block__products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 6px;
}

/* ---- bonus-product-card ---- */

.bonus-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: default;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.bonus-product-card--selectable {
    cursor: pointer;
}

.bonus-product-card--selectable:hover {
    border-color: var(--primary-color-50, rgba(13, 110, 253, 0.4));
}

.bonus-product-card.is-selected {
    border-color: var(--primary-color, #0d6efd);
    background: var(--primary-color-5, rgba(13, 110, 253, 0.05));
}

.bonus-product-card__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s ease;
}

.bonus-product-card.is-selected .bonus-product-card__dot {
    border-color: var(--primary-color, #0d6efd);
}

.bonus-product-card.is-selected .bonus-product-card__dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--primary-color, #0d6efd);
}

.promotion-block__search {
    margin-bottom: 8px;
}

.promotion-block__search-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.promotion-block__search-input:focus {
    border-color: var(--primary-color, #0d6efd);
}

.promotion-block__counter {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin: 4px 0 8px;
}

.promotion-block__counter.is-complete {
    color: #10b981;
}

.bonus-product-card__qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bonus-product-card__qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* line-height: 0 + flex centering = строго оптичний центр гліфа
       (без впливу descender-простору, який зсуває '+' / '−' вгору) */
    line-height: 0;
}

.bonus-product-card__qty-btn:hover:not(:disabled) {
    border-color: var(--primary-color, #0d6efd);
    color: var(--primary-color, #0d6efd);
}

.bonus-product-card__qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bonus-product-card__qty-count {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.promotion-block__show-more {
    width: 100%;
    background: transparent;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    color: var(--primary-color, #0d6efd);
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.promotion-block__show-more:hover {
    background: var(--primary-color-5, rgba(13, 110, 253, 0.05));
    border-color: var(--primary-color, #0d6efd);
}

.bonus-product-card__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.bonus-product-card__info {
    flex: 1;
    min-width: 0;
}

.bonus-product-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bonus-product-card__price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bonus-product-card__price-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.bonus-product-card__price-new {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.bonus-product-card__discount-badge {
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 8px;
}
