/* Valterra Ingredients - cookie consent banner */
#vcc-banner, #vcc-modal { font-family: 'Poppins', Arial, sans-serif; font-size: 14px; line-height: 1.55; color: #2b2b2b; }
#vcc-banner *, #vcc-modal * { box-sizing: border-box; }
.vcc-hidden { display: none !important; }

#vcc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 820px;
  z-index: 100000; background: rgba(255, 255, 255, .5); border-radius: 14px; border-top: 4px solid #0f8a4d;
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28); padding: 20px 24px; color: #111;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #vcc-banner { background: rgba(255, 255, 255, .94); }
}
#vcc-banner .vcc-text { color: #1a1a1a; font-weight: 500; }
#vcc-banner a { color: #0b673a; font-weight: 600; }
#vcc-banner .vcc-btn--ghost { background: rgba(255, 255, 255, .6); }
.vcc-text { margin: 0 0 14px; }
#vcc-banner a, #vcc-modal a { color: #0f8a4d; text-decoration: underline; font-weight: 500; }

.vcc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vcc-btn {
  flex: 1 1 0; min-width: 130px; padding: 12px 16px; border-radius: 8px; cursor: pointer;
  font: 600 14px/1.2 'Poppins', Arial, sans-serif; border: 2px solid #0f8a4d; background: #0f8a4d; color: #fff;
  transition: background-color .15s, color .15s;
}
.vcc-btn:hover, .vcc-btn:focus-visible { background: #0b673a; border-color: #0b673a; }
.vcc-btn--ghost { background: #fff; color: #0f8a4d; }
.vcc-btn--ghost:hover, .vcc-btn--ghost:focus-visible { background: #e8f5ee; color: #0b673a; border-color: #0b673a; }
.vcc-btn:focus-visible, .vcc-x:focus-visible, .vcc-switch input:focus-visible + .vcc-slider { outline: 3px solid #1F4D3A; outline-offset: 2px; }

#vcc-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vcc-overlay { position: absolute; inset: 0; background: rgba(15, 30, 22, .6); }
.vcc-dialog {
  position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto;
  padding: 28px 26px 24px; border-top: 4px solid #0f8a4d; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); outline: none;
}
.vcc-modal-title { margin: 0 0 10px; font-size: 20px; font-weight: 600; color: #1F4D3A; }
.vcc-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #555; }
.vcc-row { border: 1px solid #dfe6e2; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #f8fbf9; }
.vcc-row p { margin: 6px 0 0; font-size: 13px; color: #444; }
.vcc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vcc-state { font-size: 12px; font-weight: 600; color: #0f8a4d; white-space: nowrap; }
.vcc-dialog .vcc-actions { margin-top: 16px; }

.vcc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; margin: 0; }
.vcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.vcc-slider { position: absolute; inset: 0; background: #b9c4be; border-radius: 26px; transition: background-color .2s; }
.vcc-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.vcc-switch input:checked + .vcc-slider { background: #0f8a4d; }
.vcc-switch input:checked + .vcc-slider::before { transform: translateX(20px); }

@media (min-width: 992px) {
  #vcc-banner {
    left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border-radius: 0;
    padding: 14px max(24px, 2.5vw);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center;
  }
  #vcc-banner .vcc-text { grid-column: 1; grid-row: 1; margin: 0; }
  #vcc-banner .vcc-actions { grid-column: 2; grid-row: 1; flex-wrap: nowrap; align-self: center; gap: 8px; }
  #vcc-banner .vcc-btn { flex: 0 0 auto; min-width: 128px; padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 575px) {
  #vcc-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 12px; max-height: 92vh; overflow-y: auto; }
  #vcc-banner .vcc-text { font-size: 12.5px; line-height: 1.45; margin: 0 0 10px; }
  #vcc-banner .vcc-actions { flex-direction: row; flex-wrap: nowrap; gap: 6px; }
  #vcc-banner .vcc-btn { flex: 1 1 0; min-width: 0; width: auto; padding: 9px 4px; font-size: 12.5px; }
  .vcc-dialog .vcc-actions { flex-direction: column; }
  .vcc-dialog .vcc-btn { flex: none; width: 100%; }
  .vcc-dialog { padding: 22px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .vcc-btn, .vcc-slider, .vcc-slider::before { transition: none; } }
@media print { #vcc-banner, #vcc-modal { display: none !important; } }
