.tavazo-topbar[hidden],
.tavazo-topbar [hidden] {
  display: none !important;
}

.tavazo-topbar {
  position: relative;
  z-index: 40;
  width: 100%;
  background-color: var(--tb-bg, #5a0c17);
  color: var(--tb-text, #ffffff);
  font-family: var(--font, 'Vazirmatn', system-ui, -apple-system, sans-serif);
}

.tavazo-topbar__bar-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tavazo-topbar__inner {
  position: relative;
  max-width: 1440px;
  width: 100%;
  min-height: 64px;
  margin-inline: auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.tavazo-topbar--centered .tavazo-topbar__inner {
  justify-content: center;
}

.tavazo-topbar--waiting .tavazo-topbar__inner {
  min-height: 56px;
  padding: 8px 40px;
  justify-content: center;
}

.tavazo-topbar__wait-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.tavazo-topbar__start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0%;
  min-width: 0;
}

.tavazo-topbar--centered .tavazo-topbar__start {
  flex: 0 1 auto;
}

.tavazo-topbar__icon {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: var(--tb-icon-bg, #7a1c2a);
  color: var(--tb-icon-color, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tavazo-topbar__icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tavazo-topbar__icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.tavazo-topbar__icon--svg {
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent;
  overflow: visible;
}

.tavazo-topbar__icon--svg svg {
  display: block;
  max-width: 32px;
  max-height: 32px;
}

.tavazo-topbar__text {
  color: var(--tb-text, #27272a);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  min-width: 0;
}

.tavazo-topbar--waiting .tavazo-topbar__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.tavazo-topbar__divider {
  width: 1px;
  height: 16px;
  background-color: var(--tb-text, #ffffff);
  opacity: 0.35;
  flex-shrink: 0;
}

.tavazo-topbar__end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tavazo-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tavazo-topbar__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 20px;
  border-radius: 10px;
  background-color: var(--tb-cta-bg, #ffffff);
  color: var(--tb-cta-text, #18181b);
  border: 1px solid var(--tb-cta-border, #e4e4e7);
  box-shadow: 0 0.5px 1px 0 rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.tavazo-topbar__cta:hover {
  filter: brightness(0.96);
  color: var(--tb-cta-text, #18181b);
}

.tavazo-topbar__cta-arrow {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

html[dir='ltr'] .tavazo-topbar__cta-arrow,
body.ltr .tavazo-topbar__cta-arrow {
  transform: scaleX(-1);
}

.tavazo-topbar__close {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.08);
  background-color: color-mix(in srgb, var(--tb-text, #27272a) 10%, transparent);
  color: var(--tb-text, #27272a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.tavazo-topbar__close:hover {
  opacity: 0.85;
}

.tavazo-topbar--waiting .tavazo-topbar__close {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: transparent;
}

.tavazo-topbar__close-svg {
  display: block;
}

.tavazo-topbar__countdown {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--tb-cd-border, #8b2d3e);
  background-color: var(--tb-cd-bg, #6d1024);
  color: var(--tb-cd-text, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  box-sizing: border-box;
}

.tavazo-topbar__cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  line-height: 1;
}

.tavazo-topbar__cd-num {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.tavazo-topbar__cd-label {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0.9;
  margin-top: 2px;
  white-space: nowrap;
}

.tavazo-topbar__cd-sep {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-bottom: 5px;
}

.tavazo-topbar__cd-dot {
  width: 2px;
  height: 2px;
  display: block;
}

@media (max-width: 1024px) {
  .tavazo-topbar__inner {
    padding-inline: 24px;
  }
}

@media (max-width: 768px) {
  .tavazo-topbar__inner {
    min-height: 56px;
    padding: 12px 16px;
    gap: 16px;
  }

  .tavazo-topbar__start {
    gap: 8px;
  }

  .tavazo-topbar--waiting .tavazo-topbar__inner {
    padding: 8px 12px;
    gap: 8px;
    justify-content: center;
  }

  .tavazo-topbar--waiting .tavazo-topbar__wait-group {
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .tavazo-topbar--waiting .tavazo-topbar__close {
    position: relative;
    inset-inline-end: auto;
    top: auto;
    transform: none;
    width: 24px;
    height: 24px;
  }

  .tavazo-topbar--waiting .tavazo-topbar__text {
    font-size: 13px;
    flex: 0 1 auto;
    text-align: start;
  }

  .tavazo-topbar__icon {
    width: 28px;
    height: 28px;
  }

  .tavazo-topbar__icon-svg,
  .tavazo-topbar__icon-img {
    width: 16px;
    height: 16px;
  }

  .tavazo-topbar__icon--svg {
    width: auto;
    height: auto;
  }

  .tavazo-topbar__icon--svg svg {
    max-width: 28px;
    max-height: 28px;
  }

  .tavazo-topbar__text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tavazo-topbar--waiting .tavazo-topbar__text {
    flex: 0 1 auto;
    min-width: 0;
  }

  .tavazo-topbar__cta {
    height: 32px;
    min-width: 72px;
    padding-inline: 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .tavazo-topbar__cta-arrow {
    display: none;
  }

  .tavazo-topbar__close {
    width: 24px;
    height: 24px;
  }

  .tavazo-topbar__close-svg {
    width: 14px;
    height: 14px;
  }

  .tavazo-topbar__countdown {
    gap: 4px;
    padding: 3px 9px;
  }

  .tavazo-topbar__cd-unit {
    min-width: 24px;
  }

  .tavazo-topbar__cd-num {
    font-size: 16px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__inner {
    flex-wrap: nowrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__start {
    flex: 1 1 0%;
    min-width: 0;
    gap: 6px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__end {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }

  .tavazo-topbar--campaign .tavazo-topbar__actions {
    gap: 6px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__countdown {
    gap: 3px;
    padding: 3px 7px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__cd-unit {
    min-width: 20px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__cd-num {
    font-size: 13px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__cd-label {
    font-size: 8px;
  }

  .tavazo-topbar--campaign .tavazo-topbar__cta {
    min-width: auto;
    padding-inline: 10px;
    font-size: 11px;
  }
}
