:root {
  --rs-smart-banner-height: 68px;
}

.rs-smart-banner-offset {
  padding-top: var(--rs-smart-banner-height) !important;
}

.rs-smart-banner {
  --rs-smart-banner-primary-color: #0057b8;
  --rs-smart-banner-background-color: #ffffff;
  --rs-smart-banner-text-color: #111827;
  --rs-smart-banner-muted-text-color: #6b7280;
  --rs-smart-banner-border-color: rgba(17, 24, 39, 0.1);
  --rs-smart-banner-shadow: none;
  --rs-smart-banner-z-index: 9999;

  box-sizing: border-box;
  min-height: var(--rs-smart-banner-height);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px 10px 13px;
  color: var(--rs-smart-banner-text-color);
  background: var(--rs-smart-banner-background-color);
  border-bottom: 1px solid var(--rs-smart-banner-border-color);
  box-shadow: var(--rs-smart-banner-shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rs-smart-banner *,
.rs-smart-banner *::before,
.rs-smart-banner *::after {
  box-sizing: border-box;
}

.rs-smart-banner--top-fixed {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--rs-smart-banner-z-index);
}

.rs-smart-banner--top-static {
  position: relative;
  z-index: 1;
}

.rs-smart-banner__close {
  width: 24px;
  height: 34px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rs-smart-banner__close:hover,
.rs-smart-banner__close:focus-visible {
  color: #0f172a;
  background: transparent;
  outline: none;
}

.rs-smart-banner__close:active {
  transform: scale(0.94);
}

.rs-smart-banner__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rs-smart-banner__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background-color: #eef2f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.rs-smart-banner__copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0;
  line-height: 1.22;
}

.rs-smart-banner__title,
.rs-smart-banner__author,
.rs-smart-banner__price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-smart-banner__title {
  color: var(--rs-smart-banner-text-color);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rs-smart-banner__author {
  color: var(--rs-smart-banner-muted-text-color);
  font-size: 13px;
  font-weight: 600;
}

.rs-smart-banner__price {
  color: var(--rs-smart-banner-muted-text-color);
  font-size: 12px;
  font-weight: 500;
}

.rs-smart-banner__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 47px;
  min-height: 30px;
  max-width: 112px;
  padding: 7px 10px;
  color: var(--rs-smart-banner-primary-color);
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rs-smart-banner__cta:hover,
.rs-smart-banner__cta:focus-visible {
  background: color-mix(in srgb, var(--rs-smart-banner-primary-color) 8%, #ffffff);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.rs-smart-banner__cta:active {
  transform: translateY(0);
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  .rs-smart-banner__cta:hover,
  .rs-smart-banner__cta:focus-visible {
    background: #f8fafc;
  }
}

@media (min-width: 641px) {
  .rs-smart-banner {
    display: none;
  }

  .rs-smart-banner-offset {
    padding-top: 0 !important;
  }
}
