/* Header, consent banner, form status and booking fallback: the parts that replace WordPress
   plugins. Sizes and colours match the Astra header as rendered on ukrpayroll.com. */

.uh { position: relative; z-index: 99; background: #fff; border-bottom: 1px solid #d1d5db; }
.uh-bar { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; min-height: 80px;
  margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.uh-logo { display: block; line-height: 0; }
.uh-logo img { width: 180px; height: auto; }
.uh-menu, .uh-sub { list-style: none; margin: 0; padding: 0; }
.uh-menu { display: flex; align-items: center; }
.uh-item { position: relative; display: flex; align-items: center; }
.uh-item > a { display: block; padding: 0 8px; line-height: 80px; font-size: 15px; color: #334155; text-decoration: none; }
.uh-item > a:hover, .uh-item > a:focus-visible, .uh-current > a { color: #046bd2; }
.uh-sub-toggle { display: none; }
/* Astra styles every <button> as an orange pill; the header and banner buttons opt out. */
.uh button.uh-toggle, .uh button.uh-sub-toggle, .cb button { border-radius: 0; box-shadow: none; text-transform: none;
  letter-spacing: normal; min-height: 0; }
.uh button.uh-toggle, .uh button.uh-sub-toggle { background: transparent !important; color: #122433 !important; padding: 0 !important; }
.uh-has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.uh-sub { position: absolute; top: 100%; left: 0; width: 240px; background: #fff; border-top: 2px solid #046bd2;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1); visibility: hidden; opacity: 0; transition: opacity .15s; }
.uh-has-sub:hover > .uh-sub, .uh-has-sub:focus-within > .uh-sub, .uh-sub-open > .uh-sub { visibility: visible; opacity: 1; }
.uh-sub a { display: block; padding: 14px 16px; font-size: 16px; color: #334155; text-decoration: none; line-height: 1.4; }
.uh-sub a:hover, .uh-sub a:focus-visible, .uh-sub a[aria-current] { color: #046bd2; background: #f8fafc; }
.uh-lang img { display: block; }
.uh-lang > a { display: flex; align-items: center; height: 80px; }
.uh-toggle { display: none; }
.uh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 921.98px) {
  .uh-bar { flex-wrap: wrap; min-height: 70px; }
  .uh-logo img { width: 150px; }
  .uh-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    padding: 0; border: 0; background: transparent; color: #122433; cursor: pointer; }
  .uh-toggle-bars, .uh-toggle-bars::before, .uh-toggle-bars::after { display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 1px; content: ""; position: relative; }
  .uh-toggle-bars::before { position: absolute; top: -7px; }
  .uh-toggle-bars::after { position: absolute; top: 7px; }
  .uh-open .uh-toggle-bars { background: transparent; }
  .uh-open .uh-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .uh-open .uh-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .uh-nav { display: none; flex-basis: 100%; padding-bottom: 12px; }
  .uh-open .uh-nav { display: block; }
  .uh-menu { flex-direction: column; align-items: stretch; }
  .uh-item { flex-wrap: wrap; border-top: 1px solid #e5e7eb; }
  .uh-item > a { flex: 1; line-height: 1.4; padding: 14px 4px; }
  .uh-has-sub > a::after { display: none; }
  .uh-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 0; background: transparent; color: #334155; cursor: pointer; }
  .uh-sub-toggle span { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
  .uh-sub-open .uh-sub-toggle span { transform: rotate(-135deg); margin-top: 4px; }
  .uh-sub { position: static; flex-basis: 100%; width: auto; border: 0; box-shadow: none; display: none;
    visibility: visible; opacity: 1; }
  .uh-sub-open > .uh-sub { display: block; }
  .uh-has-sub:hover > .uh-sub { display: none; }
  .uh-sub-open:hover > .uh-sub { display: block; }
  .uh-sub a { padding: 12px 16px; font-size: 15px; }
  .uh-lang > a { height: auto; padding: 14px 4px; }
}

/* Consent banner, styled after the WPConsent floating banner it replaces. */
.cb { position: fixed; right: 20px; bottom: 76px; z-index: 900000; max-width: 420px; padding: 18px 20px;
  background: #04194e; color: #fff; font: 15px/1.5 Manrope, system-ui, sans-serif; border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.cb[hidden] { display: none; }
.cb p { margin: 0 0 14px; }
.cb a { color: #fff; text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cb button { padding: 9px 18px !important; border: 0 !important; border-radius: 4px; font: 600 14px/1 Manrope, system-ui, sans-serif !important; cursor: pointer; }
.cb button.cb-reject { background: #fff !important; color: #000 !important; }
.cb button.cb-accept { background: #ffcd2a !important; color: #000 !important; }
@media (max-width: 600px) { .cb { left: 12px; right: 12px; bottom: 72px; max-width: none; } }

/* Form status line under the enquiry form. */
.uf-status { margin-top: 14px; font: 15px/1.5 Manrope, system-ui, sans-serif; }
.uf-status[data-state="ok"] { color: #166534; }
.uf-status[data-state="error"] { color: #a31621; }
.uf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Booking embed and its fallback while the calendar link is not set. */
.ub-frame { width: 100%; min-height: 680px; border: 0; }
.ub-fallback { padding: 24px; border: 1px solid #dde2e7; border-radius: 14px; background: #f4f6f8;
  font: 16px/1.6 Manrope, system-ui, sans-serif; color: #122433; }
.ub-fallback a { display: inline-block; margin-top: 12px; padding: 12px 24px; border-radius: 999px;
  background: #f58220; color: #122433; font-weight: 700; text-decoration: none; }
