/* Дополнение к действующей теме: история чата и подтверждение заказа. */
.chat-older-btn {
    flex: none;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid var(--border-subtle, #e9e3e6);
    background: var(--surface-soft, #f9f7f7);
    color: var(--accent-color, #6c2d43);
    font-size: 12px;
}
.order-result {
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid var(--border-subtle, #e9e3e6);
    border-radius: 24px;
    background: var(--surface, #fff);
    overflow-wrap: anywhere;
}
.order-result h2 { margin-bottom: 12px; font-size: 25px; }
.order-result dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.order-result dt { color: var(--text-secondary, #716b71); }
.order-result dd { margin: 0; font-weight: 650; }
.order-result ul { padding-left: 20px; line-height: 1.7; }
.recent-orders { margin-top: 30px; }
.recent-order-link {
    display: block;
    margin-block: 10px;
    padding: 14px;
    border: 1px solid var(--border-subtle, #e9e3e6);
    border-radius: 14px;
    background: var(--surface, #fff);
    color: var(--accent-color, #6c2d43);
    text-decoration: none;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.order-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.order-tools a { color: var(--accent-color, #6c2d43); }
.order-page input, .chat-input { font-size: 16px; }
@media (max-width: 420px) {
    .order-result dl { grid-template-columns: 1fr; gap: 6px; }
    .order-result dd { margin-bottom: 10px; }
}

/* Product views share one frame; the first photo keeps its original dimensions. */
.card .product-photo-switch {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
.card .product-photo-switch:focus-visible {
    outline: 3px solid var(--accent-color, #6c2d43);
    outline-offset: 3px;
}
.card .product-photo-switch > .product-photo-primary {
    opacity: 1;
    transform: none;
    transition: opacity .32s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.card .product-photo-switch > .product-photo-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
    opacity: 0;
    transform: translateX(8px) scale(1.025);
    pointer-events: none;
    transition: opacity .32s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.card .product-photo-switch.show-secondary > .product-photo-primary {
    opacity: 0;
    transform: translateX(-8px) scale(.985);
}
.card .product-photo-switch.show-secondary > .product-photo-secondary {
    opacity: 1;
    transform: none;
}
.chat-icon-btn.has-chat-image {
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    filter: drop-shadow(0 6px 12px rgba(42,24,36,.18));
}
.chat-custom-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) {
    .card .product-photo-switch > .card-img-premium { transition: none; }
}
