/* Ecommerce page: where the notes in the opening point.
   Everything else comes from the service page template (business-websites-page.css), which also explains the terms:
   fx, fy: the place a note is about, as a share of its picture's width and height. run: how far to the side of that place the note
   stands (positive: to its left). gap: how far outside the picture. at: how far along the note's edge the line leaves it.
   n: the order the notes arrive in. The places are the ones ecommerce_pictures.py prints when it captures the three stores. */

/* Grand Piano Haus, behind and top right: its search box, the financing page in its menu, and the banner arrows.
   The last note stands in the open space on the right, clear of the store in front. */
#Form #bw_top [data-qs-node="bw_call_find"] { --bw-fx: .42; --bw-fy: .093; --bw-run: 20cqw; --bw-at: .5; --bw-n: 2; }
#Form #bw_top [data-qs-node="bw_call_finance"] { --bw-fx: .789; --bw-fy: .178; --bw-run: 12cqw; --bw-gap: 15cqw; --bw-at: .5; --bw-n: 3; }
#Form #bw_top [data-qs-node="bw_call_promo"] { --bw-fx: .931; --bw-fy: .59; --bw-run: 9cqw; --bw-gap: 14cqw; --bw-at: .3; --bw-n: 7; }
/* Roger & Gallet US, in front. Two notes reach into the open space top left on long lines. */
#Form #bw_top [data-qs-node="bw_call_search"] { --bw-fx: .077; --bw-fy: .087; --bw-run: 10cqw; --bw-gap: 6cqw; --bw-at: .82; --bw-n: 0; }
#Form #bw_top [data-qs-node="bw_call_menu"] { --bw-fx: .212; --bw-fy: .174; --bw-run: 14cqw; --bw-gap: 20cqw; --bw-at: .82; --bw-n: 1; }
#Form #bw_top [data-qs-node="bw_call_photos"] { --bw-fx: .755; --bw-fy: .76; --bw-run: -8cqw; --bw-at: .22; --bw-n: 6; }
/* Made in Spain Gourmet, behind and bottom left: its Spanish headline and the collection tiles. */
#Form #bw_top [data-qs-node="bw_call_languages"] { --bw-fx: .16; --bw-fy: .66; --bw-run: -6cqw; --bw-at: .18; --bw-n: 4; }
#Form #bw_top [data-qs-node="bw_call_collections"] { --bw-fx: .86; --bw-fy: .80; --bw-run: -22cqw; --bw-at: .18; --bw-n: 5; }
/* These stand below their picture, and their lines run up. */
#Form #bw_top :is([data-qs-node="bw_call_photos"], [data-qs-node="bw_call_languages"], [data-qs-node="bw_call_collections"], [data-qs-node="bw_call_promo"]) {
  top: calc(100% + var(--bw-gap)); bottom: auto;
  --bw-rise: calc(-1 * (var(--bw-gap) + (1 - var(--bw-fy)) * var(--bw-pic)));
}
#Form #bw_top :is([data-qs-node="bw_call_photos"], [data-qs-node="bw_call_languages"], [data-qs-node="bw_call_collections"], [data-qs-node="bw_call_promo"])::after { top: 0; }
/* Where the windows are small, fewer notes are shown so that none touch. */
@container bw-opening (max-width: 560px) {
  #Form #bw_top :is([data-qs-node="bw_call_search"], [data-qs-node="bw_call_find"]) { display: none; }
}
@container bw-opening (max-width: 450px) {
  #Form #bw_top [data-qs-role="bw-call"] { font-size: 11px; padding: 6px 8px; }
  #Form #bw_top [data-qs-node="bw_call_promo"] { display: none; }
  /* On a phone the long labels are kept inside the screen and apart from each other. */
  #Form #bw_top [data-qs-node="bw_call_menu"] { --bw-run: 30cqw; --bw-at: .3; }
  #Form #bw_top [data-qs-node="bw_call_languages"] { --bw-run: -2cqw; --bw-at: .3; }
}
