/* /order — two parents' voice messages, at the top of the reviews (phone: under the form; wide screens: beside it). */
.voices { margin: 14px 0 6px; display: grid; gap: 10px; }
.voices-title { font: 800 17px/1.3 var(--title-font); color: var(--ink); text-align: center; }
.voice {
    display: grid; grid-template-columns: 52px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center;
    padding: 12px 14px 10px; border-radius: 22px; background: var(--paper);
    border: 2px solid rgba(42,111,176,0.08); box-shadow: var(--card-shadow);
}
.voice-btn {
    grid-row: 1; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; position: relative;
    background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-deep); transition: transform 0.12s;
}
.voice-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-deep); }
.voice-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.vi-play { position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -6px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--ink); }
.vi-pause { display: none; position: absolute; top: 50%; left: 50%; width: 16px; height: 18px; margin: -9px 0 0 -8px; border-left: 5px solid var(--ink); border-right: 5px solid var(--ink); }
.voice.playing .vi-play { display: none; }
.voice.playing .vi-pause { display: block; }
.voice.loading .voice-btn::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--blue);
    animation: voice-spin 0.8s linear infinite;
}
@keyframes voice-spin { to { transform: rotate(360deg); } }
.voice-wave { position: relative; height: 34px; cursor: pointer; }
.vw-bg, .vw-fg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.vw-bg i, .vw-fg i { display: block; flex: 1; max-width: 4px; border-radius: 2px; background: rgba(31,58,95,0.22); }
.vw-fg i { background: var(--blue); }
/* played part: from the right (start, Arabic reading direction) to the left */
.vw-fg { clip-path: inset(0 0 0 calc((1 - var(--p, 0)) * 100%)); }
.voice-time { font: 700 13px/1 'Almarai', sans-serif; color: var(--muted); direction: ltr; min-width: 34px; text-align: left; }
.voice-who { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 6px; border-top: 1.5px dashed rgba(31,58,95,0.10); }
.voice-error { font-size: 13px; font-weight: 700; color: var(--red); text-align: center; }
@media (prefers-reduced-motion: reduce) { .voice.loading .voice-btn::after { animation-duration: 2s; } }
@media (min-width: 760px) { .voices-title { font-size: 19px; } }
@media (min-width: 1100px) { .voices-title { text-align: right; } }
