/* Afitt Bistro — Cart threshold reward + order bump (Prompt 3).
   Rendered inside the menu cart drawer / sidebar; shares theme design tokens. */

.menu-cart__reward {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fct-border, var(--color-border, #eee));
    background: var(--fct-card-bg, var(--color-surface, #fff));
}

.reward-progress__head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.reward-progress__icon {
    flex: 0 0 auto;
    color: var(--color-accent, #d03a2b);
    display: inline-flex;
    margin-top: 2px;
}

.reward-progress__copy {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.reward-progress__track {
    height: 8px;
    border-radius: 999px;
    background: var(--fct-border, rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.reward-progress__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--color-accent, #d03a2b);
    transition: width 240ms ease;
}

.reward-progress__subtotal {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--color-muted, #777);
}

.reward-feedback {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(208, 58, 43, 0.08);
    color: var(--color-danger, #b02a1d);
    font-size: 13px;
    line-height: 1.35;
}

.reward-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(34, 139, 34, 0.07);
}

.reward-selected__tag {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1c7a2e;
}

.reward-selected__name {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reward-selected__remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--color-muted, #888);
    padding: 2px 6px;
    border-radius: 6px;
}

.reward-selected__remove:hover,
.reward-selected__remove:focus-visible {
    color: var(--color-danger, #b02a1d);
    outline: 2px solid var(--color-accent, #d03a2b);
    outline-offset: 1px;
}

.reward-keep {
    margin: 10px 0 0;
    font-size: 13px;
    color: #1c7a2e;
    font-weight: 600;
}

.reward-picker {
    margin-top: 12px;
}

.reward-picker__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.reward-picker__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.reward-opt {
    flex: 0 0 auto;
    width: 150px;
    scroll-snap-align: start;
    border: 1px solid var(--fct-border, #eee);
    border-radius: 12px;
    overflow: hidden;
    background: var(--fct-card-bg, #fff);
    display: flex;
    flex-direction: column;
}

.reward-opt.is-soldout {
    opacity: 0.55;
}

.reward-opt__media {
    aspect-ratio: 4 / 3;
    display: block;
    width: 100%;
    overflow: hidden;
}

.reward-opt__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reward-opt__body {
    padding: 8px 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reward-opt__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.reward-opt__free {
    font-size: 12px;
    color: #1c7a2e;
    font-weight: 600;
}

.reward-opt__cta {
    margin: 6px 8px 8px;
    border: 0;
    border-radius: 8px;
    background: var(--color-accent, #d03a2b);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 10px;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease;
}

.reward-opt__cta:hover,
.reward-opt__cta:focus-visible {
    opacity: 0.88;
    outline: 2px solid var(--color-accent, #d03a2b);
    outline-offset: 1px;
}

.reward-opt__state {
    margin: 6px 8px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    text-align: center;
    color: var(--color-muted, #888);
    background: rgba(0, 0, 0, 0.05);
}

/* ---- order bump ("Valami még hiányzik?") ---- */

.menu-bump-block {
    border-top: 1px solid var(--fct-border, #eee);
    padding: 14px 16px;
}

.menu-bump-block__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.menu-bump-block__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-bump {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 1px solid var(--fct-border, #eee);
    border-radius: 12px;
    background: var(--fct-card-bg, #fff);
    padding: 8px;
}

.menu-bump__hit {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0;
    min-width: 0;
}

.menu-bump__media {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.menu-bump__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-bump__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.menu-bump__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-bump__price {
    font-size: 12px;
    color: var(--color-muted, #777);
}

.menu-bump__add {
    flex: 0 0 auto;
    align-self: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent, #d03a2b);
    background: transparent;
    color: var(--color-accent, #d03a2b);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu-bump__add:hover,
.menu-bump__add:focus-visible {
    background: var(--color-accent, #d03a2b);
    color: #fff;
    outline: 2px solid var(--color-accent, #d03a2b);
    outline-offset: 1px;
}

.menu-bump__badge {
    align-self: center;
    font-size: 11px;
    font-weight: 700;
    color: #1c7a2e;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(34, 139, 34, 0.1);
}

/* ---- reduced motion ---- */

.menu-cart__item--reward {
    background: rgba(34, 139, 34, 0.04);
}

@media (prefers-reduced-motion: reduce) {
    .reward-progress__fill,
    .reward-opt__cta,
    .menu-bump__add {
        transition: none;
    }
}
