html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* The theme sets .app-body { overflow-x: auto }, which forces overflow-y to auto as well,
   turning the main area into its own scroll box that ends partway down the screen.
   clip doesn't create a scroll container, so the page grows with its content and the
   window scrolls normally. min-width: 0 keeps the grid column from being pushed wide. */
.app-body {
  overflow-x: clip;
  overflow-y: visible;
  min-width: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn-attention {
    position: relative;
    overflow: hidden;
}

    .btn-attention::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
        transform: skewX(-20deg);
        animation: saving-button-wave 2.2s ease-in-out infinite;
        pointer-events: none;
    }

    .btn-attention:hover::after,
    .btn-attention:focus::after {
        animation-play-state: paused;
    }

@keyframes saving-button-wave {
    0% {
        left: -75%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}


/* Mobile side menu scrolling (phones / installed PWA, same breakpoint the theme uses).
   The nav has the theme's "custom-scroll" class, which is overflow: hidden until smartApp.js
   either sets up its custom scrollbar (desktop) or adds "no-slimscroll" to <body> (mobile).
   smartApp.js stops early on our pages because there's no .main-content element, so neither
   happens and the menu gets cut off. Here we let the menu list scroll on its own. */
@media only screen and (max-width: 991.98px) {
  .app-sidebar #js-primary-nav {
    overflow-y: auto;              /* scroll the menu list */
    min-height: 0;                 /* let it shrink to fit the sidebar so it can scroll */
    overscroll-behavior: contain;  /* don't scroll the page behind when the menu hits the end */
    -webkit-overflow-scrolling: touch;
  }
}
