/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  scroll-behavior: smooth;
}

.cookie-notice {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: end;
  width: min(384px, calc(100vw - 32px));
  min-height: 142px;
  padding: 14px 6px 14px 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgb(25 38 58 / 16%);
  color: #1d2736;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__content {
  min-width: 0;
  align-self: center;
}

.cookie-notice h2 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-notice p {
  margin: 0 0 10px;
  color: #5b6778;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice a {
  color: #1265cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice button {
  min-height: 34px;
  padding: 6px 16px;
  background: #176ee6;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.cookie-notice button:hover {
  background: #075bc8;
}

.cookie-notice button:focus-visible,
.cookie-notice a:focus-visible {
  outline: 2px solid #176ee6;
  outline-offset: 3px;
}

.cookie-notice__mascot {
  display: block;
  width: 96px;
  height: 112px;
  align-self: end;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 380px) {
  .cookie-notice {
    grid-template-columns: minmax(0, 1fr) 72px;
    padding: 13px 6px 13px 14px;
  }

  .cookie-notice__mascot {
    width: 72px;
    height: 96px;
  }
}
