/* Match the account portal cookie notice to the storefront's bottom consent bar. */
#app .cookie-banner-wrapper {
  bottom: 0;
}

#app .cookie-banner-wrapper .cookie-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(16px, calc((100vw - 1080px) / 2));
  border: 0;
  border-top: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#app .cookie-banner-wrapper .cookie-content {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

#app .cookie-banner-wrapper .cookie-icon {
  display: none;
}

#app .cookie-banner-wrapper .cookie-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.25px;
}

#app .cookie-banner-wrapper .cookie-text p {
  margin: 0;
  color: #4a5058;
  font-size: 13px;
  line-height: 1.5;
}

#app .cookie-banner-wrapper .cookie-actions {
  display: flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
}

#app .cookie-banner-wrapper .cookie-actions button {
  width: auto;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #app .cookie-banner-wrapper .cookie-banner {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #app .cookie-banner-wrapper .cookie-text h3 {
    font-size: 15px;
  }

  #app .cookie-banner-wrapper .cookie-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
  }

  #app .cookie-banner-wrapper .cookie-actions button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: normal;
  }

  #app .cookie-banner-wrapper .cookie-actions button:first-child {
    grid-column: 1 / -1;
  }
}
