/* demo/banner.css: the compact Origami sizes, 728×90 and 320×50 (banner.js).
   The face is one button: the business's picture, its name and offer, "Watch 0:17". It opens the video unit in a popover.
   Brand colours come from the root's custom properties, as OVD.Phone sets them. */
.ovd-bn { position: relative; box-sizing: border-box; display: block; width: 100%; max-width: 728px; height: 90px; margin: 0 auto; padding: 0; overflow: hidden;
  border: 0; border-radius: 4px; background: var(--b-dark, #222); color: #fff; font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.ovd-bn * { box-sizing: border-box; }
.ovd-bn-320 { max-width: 320px; height: 50px; border-radius: 3px; }
.ovd-bn-face { all: unset; box-sizing: border-box; position: absolute; inset: 0; display: flex; align-items: stretch; cursor: pointer; color: inherit; font: inherit; }
.ovd-bn-face:focus-visible { outline: 3px solid #ffffff; outline-offset: -5px; box-shadow: inset 0 0 0 6px #2196f3; }
.ovd-bn-bg { position: absolute; inset: 0; background: linear-gradient(100deg, var(--b-dark, #222) 0%, var(--b-primary, #444) 62%, var(--b-primary-2, #555) 100%); }
.ovd-bn-pic { position: relative; flex: none; width: 168px; height: 100%; overflow: hidden; }
.ovd-bn-pic img, .ovd-bn-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.04); transform-origin: 50% 50%; transition: transform 0.9s ease; }
.ovd-bn:hover .ovd-bn-pic img, .ovd-bn:hover .ovd-bn-pic svg { transform: scale(1.12); }
.ovd-bn-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, var(--b-dark, #222) 100%); }
.ovd-bn-logo { position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 800 14px/1 'Barlow Condensed', Arial, sans-serif;
  background: linear-gradient(150deg, var(--b-primary-2, #555), var(--b-dark, #222)); color: var(--b-accent, #fff); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 2px 5px rgba(0, 0, 0, 0.4); }
.ovd-bn-txt { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 14px 0 4px; }
.ovd-bn-name { font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovd-bn-offer { font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--b-accent, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovd-bn-go { position: relative; z-index: 1; flex: none; align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-right: 16px; padding: 0 16px 0 12px; border-radius: 20px;
  background: #ffffff; color: #1a1a1a; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 0.15s ease; }
.ovd-bn:hover .ovd-bn-go { transform: scale(1.05); }
.ovd-bn-go svg { width: 20px; height: 20px; flex: none; fill: var(--b-primary, #333); }
.ovd-bn[aria-expanded="true"] .ovd-bn-go { background: var(--b-accent, #fff); color: var(--b-ink-accent, #111); }
.ovd-bn[aria-expanded="true"] .ovd-bn-go svg { fill: var(--b-ink-accent, #111); }
/* 320 × 50 */
.ovd-bn-320 .ovd-bn-pic { width: 50px; }
.ovd-bn-320 .ovd-bn-pic::after { background: none; }
.ovd-bn-320 .ovd-bn-logo { display: none; }
.ovd-bn-320 .ovd-bn-txt { gap: 1px; padding: 0 8px 0 9px; }
.ovd-bn-320 .ovd-bn-name { font-size: 13.5px; }
.ovd-bn-320 .ovd-bn-offer { font-size: 11.5px; }
.ovd-bn-320 .ovd-bn-go { width: 34px; height: 34px; margin-right: 8px; padding: 0; justify-content: center; border-radius: 50%; }
.ovd-bn-320 .ovd-bn-go span { display: none; }
.ovd-bn-320 .ovd-bn-go svg { width: 18px; height: 18px; margin-left: 2px; }
@media (max-width: 560px) {
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-pic { width: 104px; }
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-name { font-size: 16px; }
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-offer { font-size: 12.5px; }
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-go { margin-right: 10px; padding: 0; width: 40px; justify-content: center; border-radius: 50%; }
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-go span { display: none; }
  .ovd-bn:not(.ovd-bn-320) .ovd-bn-go svg { margin-left: 2px; }
}
/* The popover: the 300 × 250 video unit, under the banner (or over it when there is no room below). */
.ovd-bn-pop { position: absolute; z-index: 80; width: 300px; height: 250px; border-radius: 3px; background: #ffffff; box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.12);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: 50% 0; transition: opacity 0.22s ease, transform 0.22s ease; }
.ovd-bn-pop.is-above { transform-origin: 50% 100%; transform: translateY(8px) scale(0.98); }
.ovd-bn-pop.is-open { opacity: 1; transform: none; }
.ovd-bn-pop-host { width: 300px; height: 250px; }
.ovd-bn-rm .ovd-bn-pop, .ovd-bn-rm .ovd-bn-pic img { transition: none; }
@media (prefers-reduced-motion: reduce) { .ovd-bn-pop, .ovd-bn-pic img, .ovd-bn-pic svg, .ovd-bn-go { transition: none; } }
