#gcl-cookie-panel,
#gcl-cookie-preferences {
  box-sizing: border-box;
  font-family: Barlow, Arial, sans-serif;
}

#gcl-cookie-panel {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100000;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(106, 146, 56, .45);
  border-radius: 12px;
  background: #11170c;
  color: #f2f5ee;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

#gcl-cookie-panel[hidden],
#gcl-cookie-preferences[hidden] { display: none !important; }

#gcl-cookie-panel h2 {
  margin: 0 0 5px;
  color: #f2f5ee;
  font: 700 17px/1.25 Barlow, Arial, sans-serif;
}

#gcl-cookie-panel p {
  margin: 0;
  color: #d0d9c9;
  font: 400 13px/1.45 Barlow, Arial, sans-serif;
}

#gcl-cookie-panel a { color: #a8cf77; text-underline-offset: 3px; }

.gcl-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gcl-cookie-actions button,
#gcl-cookie-preferences {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font: 700 12px/1.25 Barlow, Arial, sans-serif;
}

.gcl-cookie-actions button {
  border: 1px solid rgba(106, 146, 56, .65);
  background: transparent;
  color: #f2f5ee;
}

.gcl-cookie-actions .gcl-cookie-accept {
  background: #6a9238;
  color: #080a06;
}

.gcl-cookie-actions button[data-selected="true"] { box-shadow: inset 0 0 0 1px #f2f5ee; }

#gcl-cookie-preferences {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100000;
  border: 1px solid rgba(106, 146, 56, .45);
  background: #11170c;
  color: #f2f5ee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.gcl-cookie-actions button:focus-visible,
#gcl-cookie-preferences:focus-visible,
#gcl-cookie-panel a:focus-visible {
  outline: 3px solid #f2f5ee;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  #gcl-cookie-panel,
  #gcl-cookie-preferences {
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 74px));
  }

  #gcl-cookie-panel {
    max-height: calc(100dvh - 110px - env(safe-area-inset-bottom));
  }
}
