/* Logo and photo uploader (order form step 3, portal). Markup: w29_uploader() in lib/images.php. */
.w49-up [hidden] { display: none !important; }
.w49-up { display: grid; gap: 28px; clear: both; }
.w49-up .up-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.w49-up .up-count { margin-left: 8px; color: var(--tp-muted, #5f6b68); font-size: 15px; font-weight: 700; }
.w49-up .up-help { margin: 0 0 14px; color: var(--tp-muted, #5f6b68); font-size: 15px; line-height: 1.5; }
.w49-up .up-pick, .w49-up .up-nojs { display: none; }
.w49-up.up-js .up-pick { display: inline-flex; }
.w49-up:not(.up-js) .up-nojs { display: block; margin: 0; font-size: 15px; }
.w49-up .up-pick { position: relative; align-items: center; gap: 8px; min-height: 52px; padding: 10px 20px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px #d3dad8; color: var(--tp-ink, #10231f); font-weight: 800; cursor: pointer; corner-shape: superellipse(2); transition: box-shadow .15s; }
.w49-up .up-pick::before { content: "+"; color: var(--tp-green, #176b5d); font-size: 20px; line-height: 1; }
.w49-up .up-pick:hover { box-shadow: inset 0 0 0 1.5px #8fa29d; }
.w49-up .up-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.w49-up .up-pick:focus-within { outline: 3px solid var(--tp-peach-deep, #a8521a); outline-offset: 2px; }
.w49-up.up-busy .up-pick { opacity: .6; pointer-events: none; }
.w49-up .up-msg { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 700; }
.w49-up .up-list:not(:empty) { margin-bottom: 14px; }
.w49-up .up-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .w49-up .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.w49-up .up-item { display: grid; gap: 8px; align-content: start; }
.w49-up .up-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #d3dad8; }
.w49-up .up-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.w49-up .up-logo img { width: auto; height: 64px; max-width: 220px; aspect-ratio: auto; object-fit: contain; padding: 6px; background: #ffffff; box-shadow: inset 0 0 0 2px #e3e8e5; }
.w49-up .up-alt { width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #d3dad8; font: inherit; font-size: 16px; } /* 16 px: iOS zooms into smaller fields */
.w49-up .up-alt:focus { outline: 3px solid var(--tp-peach-deep, #a8521a); outline-offset: 1px; }
.w49-up .up-del { justify-self: start; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #d3dad8; color: #8a2a1c; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.w49-up .up-del:hover { box-shadow: inset 0 0 0 1.5px #c9a39b; }
.w49-up .up-del:focus-visible { outline: 3px solid var(--tp-peach-deep, #a8521a); outline-offset: 2px; }
