#thay-bf-dock {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #51422c;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #15110c;
  color: #f5f2e9;
  font: 400 14px/1.3 system-ui, sans-serif;
  box-shadow: 0 -6px 24px rgb(0 0 0 / .18);
}

#thay-bf-dock *,
#thay-bf-dock { box-sizing: border-box; }

#thay-bf-dock[hidden],
#thay-bf-dock [hidden],
#thay-bf-dock-space[hidden] { display: none !important; }

html.thay-bf-dock-visible {
  scroll-padding-bottom: calc(var(--thay-bf-dock-height, 0px) + 8px);
}

#thay-bf-dock .thay-bf-dock__content { width: min(100%, 980px); margin-inline: auto; }

#thay-bf-dock .thay-bf-dock__offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 4px 8px;
}

#thay-bf-dock .thay-bf-dock__title { grid-column: 1 / 3; display: grid; gap: 1px; }
#thay-bf-dock .thay-bf-dock__title strong { font-size: 14px; color: #f5f2e9; }
#thay-bf-dock .thay-bf-dock__title span { font-size: 11px; color: #c9bdad; }

#thay-bf-dock .thay-bf-dock__timer {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 16rem);
  column-gap: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#thay-bf-dock .thay-bf-dock__timer > div {
  display: grid;
  padding: 4px 1px;
  border-radius: 5px;
  background: #231b13;
}

#thay-bf-dock .thay-bf-dock__timer strong { color: #f5f2e9; font-size: 17px; line-height: 1.08; }
#thay-bf-dock .thay-bf-dock__timer span { color: #c9bdad; font-size: 10px; }

#thay-bf-dock :is(.thay-bf-dock__primary, .thay-bf-dock__secondary, .thay-bf-dock__close) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  appearance: none;
  margin: 0;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: 700 12px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  cursor: pointer;
}

#thay-bf-dock .thay-bf-dock__offer .thay-bf-dock__timer { grid-column: 1; }
#thay-bf-dock .thay-bf-dock__offer .thay-bf-dock__primary { grid-column: 2 / 4; grid-row: 2; }
#thay-bf-dock .thay-bf-dock__primary { background: #e9bc70; color: #181007; }
#thay-bf-dock .thay-bf-dock__primary:hover { background: #f5d296; color: #181007; }

#thay-bf-dock .thay-bf-dock__close {
  grid-column: 3;
  grid-row: 1;
  width: 44px;
  padding: 0;
  background: transparent;
  color: #f5f2e9;
  font-size: 24px;
}

#thay-bf-dock .thay-bf-dock__secondary { color: #f5f2e9; background: transparent; border-color: #8c7450; }
#thay-bf-dock :is(.thay-bf-dock__secondary, .thay-bf-dock__close):hover { background: #332719; }
#thay-bf-dock :focus-visible { outline: 2px solid #f5d296; outline-offset: 2px; }

#thay-bf-dock .thay-bf-dock__confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; }
#thay-bf-dock-question { margin: 0; text-align: center; font-weight: 700; }
#thay-bf-dock .thay-bf-dock__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

@media (min-width: 620px) {
  #thay-bf-dock .thay-bf-dock__offer { grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem) auto 44px; gap: 12px; }
  #thay-bf-dock .thay-bf-dock__title { grid-column: 1; }
  #thay-bf-dock .thay-bf-dock__title strong { font-size: 16px; }
  #thay-bf-dock .thay-bf-dock__offer .thay-bf-dock__timer { grid-column: 2; grid-row: 1; }
  #thay-bf-dock .thay-bf-dock__offer .thay-bf-dock__primary { grid-column: 3; grid-row: 1; padding-inline: 16px; }
  #thay-bf-dock .thay-bf-dock__close { grid-column: 4; }
}
