.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--faded-bg-colour);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  align-items: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width:100%;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent-buttons {
  flex-shrink: 0;
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--faded-bg-colour);
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 80rem;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 2.8rem;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.cookie-type {
  width: 100%;
  gap: 2.0rem;
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-default-colour);
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
}

.cookie-type .cookie-line {
  flex-shrink: 0;
  gap: 0.8rem;
  display: flex;
}

.cookie-type span {
  flex-grow: 1;
}

.button-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  justify-content: flex-end;
}


@media (min-width: 1024px) {
  .banner-inner {
    flex-direction: row;
  }

  .cookie-consent-buttons {
    justify-content: flex-end;
  }
}