/* Duo template fights the design. These rules only restore the design type
   and keep the existing toast, offline bar and login sheet in one row. */

#preloader { display: none !important; }

body {
  font-family: "DM Sans", sans-serif !important;
  background:
    radial-gradient(ellipse at 22% 18%, #244D59 0%, transparent 48%),
    radial-gradient(ellipse at 85% 85%, #17343F 0%, transparent 52%),
    linear-gradient(135deg, #19272D 0%, #0C1115 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  color: #161a1b !important;
  line-height: 1.45 !important;
}

#page.app {
  border: 0 !important;
  box-shadow: none !important;
}

.top,
body.night .top {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(36, 77, 89, 0.62) 0%, transparent 30%),
    radial-gradient(ellipse at 85% 85%, rgba(23, 52, 63, 0.5) 0%, transparent 34%),
    linear-gradient(135deg, #19272D 0%, #0C1115 100%) !important;
}

.app {
  font-family: "DM Sans", sans-serif !important;
}

.app h1,
.app h2,
.app h3,
.app h4,
.app h5,
.app h6 {
  font-family: Manrope, sans-serif !important;
  color: inherit;
}

.app p {
  margin-bottom: 0;
  padding-bottom: 0;
}

.loyal-card.is-hidden { display: none !important; }

.toast.toast-bar {
  display: none !important;
  width: max-content;
  max-width: min(92vw, 440px);
  height: auto !important;
  top: auto !important;
  bottom: auto !important;
  background: #202829 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: 0 12px 35px #0002 !important;
  padding: 12px 14px !important;
  gap: 10px;
  align-items: center;
  z-index: 200;
}

.toast.toast-bar.show {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  left: 50% !important;
  right: auto !important;
  bottom: 91px !important;
  top: auto !important;
  height: auto !important;
  margin-left: 0 !important;
  width: max-content !important;
  max-width: min(92vw, 440px);
  transform: translateX(-50%) !important;
  opacity: 1 !important;
}

.toast.toast-bar strong,
.toast.toast-bar span {
  color: #fff !important;
}

.toast.toast-bar .icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  line-height: 28px !important;
  margin: 0 !important;
  flex: 0 0 28px;
}

.toast.toast-bar > .align-self-center:nth-child(2) {
  min-width: 0;
}

.toast.toast-bar .btn-close {
  flex: 0 0 auto;
  margin: 0 !important;
}

.offline-message,
.online-message {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 16px !important;
  width: max-content;
  max-width: min(92vw, 440px);
  height: auto !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.3 !important;
  padding: 12px 16px !important;
  border-radius: 13px !important;
  z-index: 220;
  transform: translateX(-50%) translateY(-160%) !important;
}

.offline-message-active,
.online-message-active {
  transform: translateX(-50%) translateY(0) !important;
}

#sso-login-step-1 .list-group-item,
#sso-login-step-2 .list-group-item,
#sso-register .list-group-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

#sso-login-step-1 .list-group-item .bi-chevron-right,
#sso-login-step-2 .list-group-item .bi-chevron-right,
#sso-register .list-group-item .bi-chevron-right {
  margin-left: auto;
}

#sso-login-step-1 .btn,
#sso-login-step-2 .btn,
#sso-register .btn,
#get-stamp-information .btn,
#stamp-not-available .btn,
#get-prize .btn {
  border-radius: 14px !important;
}

/* Cały kafelek miasta otwiera select. Widoczna nazwa jest osobno, select leży na wierzchu. */
.places-filters .city-select {
  position: relative;
  cursor: pointer;
}

.places-filters .city-value {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font: 800 19px Manrope, sans-serif;
  letter-spacing: -0.6px;
  color: #172226;
  line-height: 26px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.night .places-filters .city-value {
  color: #fff;
}

.places-filters .city-select select {
  position: absolute !important;
  grid-column: auto !important;
  grid-row: auto !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.places-filters .city-chevron {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  grid-row: auto;
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.places-filters .city-chevron svg {
  display: block;
  width: 18px;
  height: 18px;
}

.places-filters .searchbox input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.places-filters .search-clear {
  display: none;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7876;
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.places-filters .searchbox.has-value .search-clear {
  display: flex;
}

body.night .places-filters .search-clear {
  color: #d5e0e2;
}

body.night .drawer .menu-link {
  color: #e8f0ee;
}

body.night .section-row h2 {
  color: #f4f7f5;
}

body.night #cardcount {
  color: #c8d2ce;
}

body.night .bottom .active {
  color: #f4f7f5;
}

body.night .bottom .active svg {
  color: #45d8ff;
}

body.night .drawer .menu-link.active {
  background: #163844;
  color: #b8f3ff;
}

#detailprogress .rewards-light,
body.night #detailprogress .rewards-light {
  background: transparent !important;
}

body.night #detailprogress .goals-heading {
  color: #9aafb4;
}

body.night .drawer .menu-label {
  color: #9aa8a4;
}

body.night .drawer .menu-footer,
body.night .drawer .menu-footer a {
  color: #c5d0cc;
}

#detailprogress .progress-circle {
  position: relative;
  width: 47px !important;
  height: 47px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

#detailprogress .progress-circle svg {
  position: absolute;
  inset: 0;
  width: 47px;
  height: 47px;
  transform: rotate(-90deg);
}

#detailprogress .progress-circle circle {
  fill: none;
  stroke-width: 3.1;
}

#detailprogress .progress-circle .progress-track {
  stroke: #324a53;
}

#detailprogress .progress-circle .progress-value {
  stroke: #45d8ff;
  stroke-linecap: round;
  stroke-dasharray: calc(var(--p) * 97.389 / 100) 97.389;
}

#detailprogress .progress-circle[data-p="0"] .progress-value {
  stroke: transparent;
}

#detailprogress .progress-circle span {
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .drawer {
    left: 0 !important;
    width: 350px !important;
    transform: none !important;
  }

  .drawer-backdrop,
  .drawer-close,
  .top [data-menu],
  .bottom [data-menu] {
    display: none !important;
  }

  .bottom {
    grid-template-columns: 1fr 1fr;
    left: calc((100vw + 350px) / 2) !important;
    width: 520px;
    transform: translateX(-50%);
  }

  #page.app {
    width: 520px;
    max-width: 520px;
    margin-left: calc((100vw + 350px - 520px) / 2);
    margin-right: 0;
  }
}
