/* The look of the Binotel callback widget.

   Binotel's script draws the widget inside the page (static/js/getcall.js):
   a round button with a tooltip, a form that opens from the button over the
   darkened page, and on a screen wider than 979px a bar that rises from the
   bottom by itself. Binotel gives it one of its own themes, chosen in the
   Binotel account. This file redraws all three on top of that theme: the
   ground is the site's blue with a little white in it, text takes the ranks
   the site uses on a dark band, the field is white and the one button is
   yellow, and corners, shadows and most type sizes are the site's tokens.

   It is apart from site.css because site.css styles only what the site's own
   templates and scripts write, and the design audit holds it to that. The
   page loads this file only where the widget loads (templates/base.html).

   Every selector names the widget's id twice. Binotel's stylesheet arrives
   later and marks its colours !important, with one id in each selector, so
   two ids outrank it. The class names are Binotel's. If Binotel renames one,
   that part falls back to the theme.

   The line under the form that counts free operators and today's orders is
   hidden: the site shows no figure it cannot stand behind. */

#bingc-passive, #bingc-active {
  /* --blue, 82 parts to 18 of white. Written out, because a browser without
     color-mix() would drop the ground and leave white text on a white page. */
  --getcall-ground: #2E75C5;
  /* --blue, 16 parts to 84 of white: the row under the cursor in a list */
  --getcall-row: #D6E4F4;
  /* the ground is dark, so the ring is the light one, as on the site's bar */
  --focus-ring: var(--on-dark);
}

/* ── the typeface, everywhere in the widget ─────────────────────────── */
#bingc-passive#bingc-passive, #bingc-active#bingc-active, #bingc-phone-button#bingc-phone-button,
#bingc-passive#bingc-passive *, #bingc-active#bingc-active *, #bingc-phone-button#bingc-phone-button *,
#bingc-passive#bingc-passive *::before, #bingc-active#bingc-active *::before, #bingc-phone-button#bingc-phone-button *::before,
#bingc-passive#bingc-passive *::after, #bingc-active#bingc-active *::after, #bingc-phone-button#bingc-phone-button *::after { font-family: var(--fs) !important; }

/* ── the round button and its tooltip ───────────────────────────────── */
#bingc-phone-button#bingc-phone-button circle.bingc-phone-button-circle-inside,
#bingc-phone-button#bingc-phone-button circle.bingc-phone-button-circle-outside { fill: var(--blue) !important; }
#bingc-phone-button#bingc-phone-button:hover circle.bingc-phone-button-circle-inside { fill: var(--blue-hover) !important; }
#bingc-phone-button#bingc-phone-button div.bingc-phone-button-tooltip { background: var(--blue) !important; color: var(--on-dark) !important; border-radius: var(--r-box) !important; }
#bingc-phone-button#bingc-phone-button svg.bingc-phone-button-arrow polyline { fill: var(--blue) !important; }
/* The two words that take turns with the icon. Binotel asks for a light
   weight, which the site's typeface does not carry. */
#bingc-phone-button#bingc-phone-button div.bingc-phone-button-icon-text,
#bingc-phone-button#bingc-phone-button div.bingc-phone-button-icon-text span { font-size: var(--t-note) !important; font-weight: var(--w-medium) !important; letter-spacing: .06em !important; }
/* Binotel's box for the words stands 2.5px right of the circle's centre. */
#bingc-phone-button#bingc-phone-button div.bingc-phone-button-icon-text span { position: relative; left: -2.5px; }

/* ── the two surfaces, and the page behind the top one ──────────────── */
#bingc-passive#bingc-passive div.bingc-passive-overlay { background: var(--getcall-ground) !important; border: var(--edge) var(--on-dark-line); border-radius: var(--r-panel); box-shadow: var(--shadow-modal); }
#bingc-active#bingc-active { background: var(--getcall-ground) !important; border: var(--edge) var(--on-dark-line); border-bottom: 0; border-radius: var(--r-panel) var(--r-panel) 0 0; box-shadow: var(--shadow-panel); }
#bingc-passive#bingc-passive div.bingc-passive-background { background: var(--backdrop) !important; }

/* ── words ──────────────────────────────────────────────────────────── */
/* The offer, and what the form says after an order and when an order fails:
   the first rank of text on a dark band, and semi-bold. */
#bingc-passive#bingc-passive div.bingc-we-will-call-you,
#bingc-passive#bingc-passive div.bingc-we-will-call-you b,
#bingc-passive#bingc-passive div.bingc-we-will-call-you span,
#bingc-passive#bingc-passive div.bingc-we-already-call-you,
#bingc-passive#bingc-passive div.bingc-we-will-call-you-later,
#bingc-passive#bingc-passive div.bingc-we-will-call-you-later span,
#bingc-passive#bingc-passive div.bingc-something-went-wrong,
#bingc-active#bingc-active div.bingc-we-will-call-you,
#bingc-active#bingc-active div.bingc-we-will-call-you span,
#bingc-active#bingc-active div.bingc-we-already-call-you,
#bingc-active#bingc-active div.bingc-we-will-call-you-later,
#bingc-active#bingc-active div.bingc-we-will-call-you-later span,
#bingc-active#bingc-active div.bingc-something-went-wrong { color: var(--on-dark) !important; font-weight: var(--w-medium) !important; }
/* the line above the offer outside working hours, and the lines of that
   kind in the later messages */
#bingc-passive#bingc-passive div.bingc-we-will-call-you span.small-text,
#bingc-passive#bingc-passive div.bingc-we-will-call-you-later span.small-text,
#bingc-active#bingc-active div.bingc-we-will-call-you-later span.small-text { font-weight: var(--w-reset) !important; }
/* The bar's offer is 18px: at Binotel's 20px, semi-bold, it does not fit
   its two lines. */
#bingc-active#bingc-active div.bingc-we-will-call-you { font-size: 18px !important; }
/* The top form is a row of large type above 1099px, and Binotel sets its own
   smaller sizes below that. */
@media (min-width: 1100px) {
  #bingc-passive#bingc-passive div.bingc-we-will-call-you,
  #bingc-passive#bingc-passive div.bingc-we-already-call-you,
  #bingc-passive#bingc-passive div.bingc-we-will-call-you-later,
  #bingc-passive#bingc-passive div.bingc-something-went-wrong { font-size: 24px !important; }
  #bingc-passive#bingc-passive div.bingc-we-will-call-you span.small-text { font-size: var(--t-lead) !important; }
}
/* The example number under the field. Binotel draws it at less than half
   strength; at 13px it needs the first rank and full strength to be read. */
#bingc-passive#bingc-passive div.bingc-phone-sample,
#bingc-passive#bingc-passive div.bingc-phone-sample span { color: var(--on-dark) !important; opacity: 1 !important; }
/* The countdown, in the mono face like every figure on the site. Binotel
   draws its fixed parts, «00:» and «:99», at a third of their strength. */
#bingc-passive#bingc-passive div.bingc-passive-countdown-timer,
#bingc-active#bingc-active div.bingc-active-countdown-timer,
#bingc-passive#bingc-passive span.bingc-sample-countdown-timer,
#bingc-active#bingc-active span.bingc-sample-countdown-timer,
#bingc-passive#bingc-passive span.bingc-sample-countdown-timer span,
#bingc-active#bingc-active span.bingc-sample-countdown-timer span { color: var(--on-dark-quiet) !important; font-family: var(--fd) !important; opacity: 1 !important; }

/* ── the field and the button ───────────────────────────────────────── */
#bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input,
#bingc-active#bingc-active input.bingc-active-get-phone-form-input { color: var(--ink) !important; background: var(--bg) !important; border: var(--edge) transparent !important; border-radius: var(--r-box) !important; font-size: var(--t-lead) !important; font-weight: var(--w-reset) !important; }
#bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input::placeholder,
#bingc-active#bingc-active input.bingc-active-get-phone-form-input::placeholder { color: var(--ink2) !important; opacity: 1; font: var(--w-reset) var(--t-lead) var(--fs) !important; }
#bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input::-webkit-input-placeholder,
#bingc-active#bingc-active input.bingc-active-get-phone-form-input::-webkit-input-placeholder { color: var(--ink2) !important; opacity: 1; font: var(--w-reset) var(--t-lead) var(--fs) !important; }
#bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input::-moz-placeholder,
#bingc-active#bingc-active input.bingc-active-get-phone-form-input::-moz-placeholder { color: var(--ink2) !important; opacity: 1; font: var(--w-reset) var(--t-lead) var(--fs) !important; }
/* Binotel removes the outline from the field. The field's ground is white,
   so its ring is the ink, as on the search field in the site's bar. */
#bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input:focus-visible,
#bingc-active#bingc-active input.bingc-active-get-phone-form-input:focus-visible { outline: var(--edge-focus) var(--ink) !important; outline-offset: var(--focus-inset) !important; }
/* a number the widget refuses */
#bingc-passive#bingc-passive input.warning,
#bingc-active#bingc-active input.warning { border-color: var(--alert) !important; }
/* Binotel's second line under the field */
#bingc-passive#bingc-passive div.bingc-passive-get-phone-form-input-border:after,
#bingc-active#bingc-active div.bingc-active-get-phone-form-input-border:after { background-color: transparent !important; }

/* the button: the yellow of «Знайти», and on yellow the ring is the ink */
#bingc-passive#bingc-passive a.bingc-passive-phone-form-button,
#bingc-active#bingc-active a.bingc-active-phone-form-button { --focus-ring: var(--ink); background: var(--yel) !important; color: var(--ink) !important; border-radius: var(--r-box) !important; font-size: var(--t-lead) !important; font-weight: var(--w-medium) !important; }
#bingc-passive#bingc-passive a.bingc-passive-phone-form-button:hover,
#bingc-active#bingc-active a.bingc-active-phone-form-button:hover,
#bingc-passive#bingc-passive a.bingc-passive-phone-form-button:active,
#bingc-active#bingc-active a.bingc-active-phone-form-button:active { background: var(--yel-hover) !important; }

/* The field and the button are one control where they stand in a row, like
   the search in the site's bar: rounded outside, square where they meet. The
   bar at the bottom is always a row. The top form is a row above 1099px, and
   below that Binotel stacks the two. */
#bingc-active#bingc-active input.bingc-active-get-phone-form-input { border-radius: var(--r-box) 0 0 var(--r-box) !important; }
#bingc-active#bingc-active a.bingc-active-phone-form-button { border-radius: 0 var(--r-box) var(--r-box) 0 !important; }
@media (min-width: 1100px) {
  #bingc-passive#bingc-passive input.bingc-passive-get-phone-form-input { border-radius: var(--r-box) 0 0 var(--r-box) !important; }
  #bingc-passive#bingc-passive a.bingc-passive-phone-form-button { border-radius: 0 var(--r-box) var(--r-box) 0 !important; }
}

/* ── outside working hours: the time and the day ────────────────────── */
/* The hour and the minutes are white fields, in every state: at rest, under
   the cursor, and open with their list showing. */
#bingc-passive#bingc-passive div[class*="-date-selection-select-hour"]:not([class*="-list-of-"]),
#bingc-active#bingc-active div[class*="-date-selection-select-hour"]:not([class*="-list-of-"]),
#bingc-passive#bingc-passive div[class*="-date-selection-select-minutes"]:not([class*="-list-of-"]),
#bingc-active#bingc-active div[class*="-date-selection-select-minutes"]:not([class*="-list-of-"]) { background: var(--bg) !important; border-radius: var(--r-box); }
/* Binotel centres the figures in the box and pins the arrows to its right
   edge. The mono figures are wider than Binotel's, and 6px to the left gives
   them the same room on both sides. */
#bingc-passive#bingc-passive span[class*="-date-selection-selected-hour"],
#bingc-active#bingc-active span[class*="-date-selection-selected-hour"],
#bingc-passive#bingc-passive span[class*="-date-selection-selected-minutes"],
#bingc-active#bingc-active span[class*="-date-selection-selected-minutes"] { color: var(--ink) !important; font-family: var(--fd) !important; position: relative; left: -6px; }
#bingc-passive#bingc-passive svg[class*="-date-selection-arrows"] path,
#bingc-active#bingc-active svg[class*="-date-selection-arrows"] path { fill: var(--ink2) !important; fill-opacity: 1; }

/* The day sits on the blue ground. It is a choice the visitor can change,
   so it is in the first rank of text and underlined. Binotel draws it at
   half strength in the bar. */
#bingc-passive#bingc-passive span[class*="-date-selection-selected-day"],
#bingc-active#bingc-active span[class*="-date-selection-selected-day"] { color: var(--on-dark) !important; opacity: 1 !important; text-decoration: underline; text-decoration-color: var(--on-dark-faint); text-underline-offset: 3px; }
#bingc-passive#bingc-passive div[class*="-date-selection-select-day"] > svg path,
#bingc-active#bingc-active div[class*="-date-selection-select-day"] > svg path { fill: var(--on-dark) !important; fill-opacity: 1; }
#bingc-passive#bingc-passive div[class*="-date-selection-select-day"]:not([class*="-list-of-"]):hover,
#bingc-active#bingc-active div[class*="-date-selection-select-day"]:not([class*="-list-of-"]):hover { background: var(--blue) !important; border-radius: var(--r-box); }

/* in the bar the day is a word of the offer, at the offer's size */
#bingc-active#bingc-active span[class*="-date-selection-selected-day"] { font-size: inherit !important; }

/* The lists that open from the time boxes and the day. Binotel splits a long
   list of hours into columns, so the shadow and the corners are on the box
   around the columns. A box and its open list meet square and stay rounded
   outside: Binotel marks the open box with a class that ends in -hover. In
   the top form the list hangs under its box; in the bar it opens upward. */
#bingc-passive#bingc-passive div[class*="-list-of-"][class*="-container"],
#bingc-active#bingc-active div[class*="-list-of-"][class*="-container"] { box-shadow: var(--shadow-panel) !important; overflow: hidden; }
#bingc-passive#bingc-passive ul[class*="-list-of-"] li,
#bingc-active#bingc-active ul[class*="-list-of-"] li { color: var(--ink) !important; }
#bingc-passive#bingc-passive ul[class*="-list-of-"] li:hover,
#bingc-active#bingc-active ul[class*="-list-of-"] li:hover { background: var(--getcall-row) !important; }
#bingc-passive#bingc-passive div[class*="-date-selection-select-hour-hover"],
#bingc-passive#bingc-passive div[class*="-date-selection-select-minutes-hover"],
#bingc-passive#bingc-passive div[class*="-date-selection-select-day-hover"],
#bingc-active#bingc-active div[class*="-list-of-"][class*="-container"] { border-radius: var(--r-box) var(--r-box) 0 0 !important; }
#bingc-active#bingc-active div[class*="-date-selection-select-hour-hover"],
#bingc-active#bingc-active div[class*="-date-selection-select-minutes-hover"],
#bingc-active#bingc-active div[class*="-date-selection-select-day-hover"],
#bingc-passive#bingc-passive div[class*="-list-of-"][class*="-container"] { border-radius: 0 0 var(--r-box) var(--r-box) !important; }

/* In the bar Binotel gives the list of days a width of its own. Here it
   spans the day's box. */
#bingc-active#bingc-active div[class*="-date-selection-select-day"] div[class*="-list-of-days-container"] { right: 0 !important; width: auto !important; }
#bingc-active#bingc-active div[class*="-date-selection-select-day"] ul[class*="-list-of-"] { width: 100% !important; box-sizing: border-box; }
#bingc-active#bingc-active div[class*="-date-selection-select-day"] ul[class*="-list-of-"] li { width: auto !important; }

/* ── the close mark, the credit, the line of figures ────────────────── */
/* Binotel draws the close mark at less than half strength. It is the only
   way to send the bar away, so it is at full strength. */
#bingc-passive#bingc-passive a.bingc-passive-close-button,
#bingc-active#bingc-active a.bingc-active-close-button { opacity: 1 !important; }
#bingc-passive#bingc-passive a.bingc-passive-close-button svg polygon,
#bingc-active#bingc-active a.bingc-active-close-button svg polygon { fill: var(--on-dark-quiet) !important; }
/* Binotel's credit is a dark picture with dark words: both are turned light */
#bingc-passive#bingc-passive a.bingc-powered-by,
#bingc-active#bingc-active a.bingc-powered-by { filter: brightness(0) invert(1); opacity: .7; }
#bingc-passive#bingc-passive div.bingc-statistics,
#bingc-active#bingc-active div.bingc-statistics { display: none !important; }
