/* Bulk quote popup additions: product picker and the EBC delivery van. Plain CSS (no build step). */

/* ---- Material picker ---- */
.bq-material { position: relative; }
.bqp { position: absolute; z-index: 30; left: 0; width: max(100%, 360px); max-width: calc(100vw - 2.5rem); top: calc(100% + 6px); max-height: 300px; overflow-y: auto; padding: .35rem; border-radius: 14px;
    background: #fff; border: 1px solid #e1e4e8; box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .35); animation: bqp-in .16s ease both; overscroll-behavior: contain; }
.bqp[hidden] { display: none; }
.bqp-cat { position: sticky; top: -.35rem; z-index: 1; margin: 0 -.35rem; padding: .45rem .85rem .3rem; background: #fff; font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #d71616; }
.bqp-opt { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .45rem .55rem; border: 0; border-radius: 10px; background: none; text-align: left; color: #242529; }
.bqp-opt:hover, .bqp-opt.is-active { background: #fff4f4; }
.bqp-opt img { flex: none; width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #f6f7f8; padding: 2px; }
.bqp-opt b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.bqp-opt small { display: block; font-size: .74rem; color: #8a8f98; }
.bqp-note { padding: .8rem .85rem; font-size: .85rem; color: #6b6f77; display: flex; gap: .5rem; align-items: center; }
.bqp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #f1d0d0; border-top-color: #d71616; animation: bqp-rot .7s linear infinite; }
@keyframes bqp-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes bqp-rot { to { transform: rotate(360deg); } }

/* ---- Delivery van driving across the red panel ---- */
.bq-van { position: relative; height: 128px; margin-top: auto; }
.bq-side-foot { margin-top: 1rem !important; }
.bq-van-body { position: absolute; left: 6%; bottom: 22px; width: 220px; height: 92px; animation: van-drive 6s ease-in-out infinite, van-bump .35s ease-in-out infinite alternate; }
.bq-van-box { position: absolute; left: 0; top: 0; width: 150px; height: 78px; border-radius: 10px 4px 4px 10px; background: #fff;
    box-shadow: inset 0 -10px 0 #f1f2f4, 0 10px 18px -10px rgba(0, 0, 0, .5); display: grid; place-items: center; align-content: center; gap: 2px; padding: 0 10px; }
.bq-van-box img { width: 112px; height: auto; display: block; }
.bq-van-box span { font-size: .5rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8f98; }
.bq-van-cab { position: absolute; left: 152px; top: 18px; width: 62px; height: 60px; border-radius: 6px 20px 6px 4px; background: #242529; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }
.bq-van-window { position: absolute; right: 7px; top: 8px; width: 30px; height: 20px; border-radius: 3px 13px 3px 3px; background: linear-gradient(135deg, #cfe3ff, #8fb4e6); }
.bq-van-light { position: absolute; right: -2px; bottom: 12px; width: 6px; height: 8px; border-radius: 2px; background: #fde68a; box-shadow: 8px 0 14px 4px rgba(253, 230, 138, .45); }
.bq-van-wheel { position: absolute; bottom: -12px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #d1d5db 0 5px, #1b1c20 6px 100%);
    border: 3px solid #1b1c20; animation: van-wheel .5s linear infinite; }
.bq-van-wheel::after { content: ""; position: absolute; left: 50%; top: 2px; width: 2px; height: 8px; margin-left: -1px; background: #9aa0a6; border-radius: 2px; }
.bq-van-wheel.w1 { left: 22px; } .bq-van-wheel.w2 { left: 170px; }
.bq-van-road { position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .18); overflow: hidden; }
.bq-van-road i { position: absolute; inset: 2px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 18px, transparent 18px 38px); animation: van-road .6s linear infinite; }
.bq-van-dust { position: absolute; bottom: 12px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .5); opacity: 0; animation: van-dust 1.2s ease-out infinite; }
.bq-van-dust.d1 { left: 4%; } .bq-van-dust.d2 { left: 2%; animation-delay: .4s; } .bq-van-dust.d3 { left: 6%; animation-delay: .8s; }
@keyframes van-drive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(18px); } }
@keyframes van-bump { to { margin-bottom: 2px; } }
@keyframes van-wheel { to { transform: rotate(360deg); } }
@keyframes van-road { to { transform: translateX(-38px); } }
@keyframes van-dust { 0% { opacity: .7; transform: translateX(0) scale(.6); } 100% { opacity: 0; transform: translateX(-26px) scale(1.4); } }
@media (max-width: 767.98px) { .bq-van { display: none; } }
@media (prefers-reduced-motion: reduce) { .bq-van *, .bqp, .bqp-spin { animation: none !important; } }
