/**
 * Cookie consent banner styles.
 *
 * Stacks above message-bar (z-index 9998) and header (z-index 9997) so it
 * always sits on top. Brand palette: gm-ide-green (#242D29) background to
 * match the footer, gm-sky (#B3D6D3) accent for the Accept button.
 */

.gm-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  right: 1rem;
  margin: 0 auto;
  max-width: 880px;
  z-index: 10000;
  background: #242D29;
  color: #F7F5ED;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.18);
  font-family: 'PP Mori', system-ui, -apple-system, sans-serif;
  animation: gm-cookie-banner-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gm-cookie-banner[hidden] {
  display: none !important;
}

.gm-cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.gm-cookie-banner__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #B3D6D3;
}

.gm-cookie-banner__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gm-cookie-banner__copy {
  flex: 1 1 360px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #F7F5ED;
}

.gm-cookie-banner__link {
  color: #B3D6D3;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.25rem;
}

.gm-cookie-banner__link:hover,
.gm-cookie-banner__link:focus-visible {
  color: #FFFFFF;
}

.gm-cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.gm-cookie-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.gm-cookie-banner__btn--accept {
  background: #B3D6D3;
  color: #242D29;
}

.gm-cookie-banner__btn--accept:hover,
.gm-cookie-banner__btn--accept:focus-visible {
  background: #FFFFFF;
  outline: none;
}

.gm-cookie-banner__btn--decline {
  background: transparent;
  color: #F7F5ED;
  border-color: rgba(247, 245, 237, 0.4);
}

.gm-cookie-banner__btn--decline:hover,
.gm-cookie-banner__btn--decline:focus-visible {
  border-color: #F7F5ED;
  background: rgba(247, 245, 237, 0.08);
  outline: none;
}

.gm-cookie-banner__btn:focus-visible {
  outline: 2px solid #B3D6D3;
  outline-offset: 2px;
}

@keyframes gm-cookie-banner-in {
  from { transform: translateY(calc(100% + 1.5rem)); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
  .gm-cookie-banner {
    bottom: 1.25rem;
    left: 1.75rem;
    right: 1.75rem;
    padding: 0.875rem 1rem;
    border-radius: 22px;
  }
  .gm-cookie-banner__inner {
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .gm-cookie-banner__actions {
    margin-left: 2rem;
  }
  .gm-cookie-banner__icon {
    width: 20px;
    height: 20px;
  }
  .gm-cookie-banner__copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .gm-cookie-banner__actions {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.5rem;
  }
  .gm-cookie-banner__btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.75rem;
    min-height: 32px;
    min-width: 0;
  }
}
