/*
 * Hamaco Verhuur - Cookie banner
 * Huisstijl: #991B1B / #609839
 */

.hamaco-cookie-banner[hidden],
.hamaco-cookie-modal[hidden] {
  display: none !important;
}

.hamaco-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999990;
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  color: #222;
  border-top: 4px solid #991B1B;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  font-family: inherit;
}

.hamaco-cookie-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
}

.hamaco-cookie-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hamaco-cookie-text h2 {
  margin: 0 0 6px;
  color: #991B1B;
  font-size: 20px;
  line-height: 1.25;
}

.hamaco-cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.hamaco-cookie-text a {
  color: #991B1B;
  text-decoration: underline;
}

.hamaco-cookie-actions,
.hamaco-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.hamaco-cookie-btn {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.hamaco-cookie-btn:focus-visible,
.hamaco-cookie-close:focus-visible,
.hamaco-cookie-switch input:focus-visible + .hamaco-cookie-slider {
  outline: 3px solid rgba(96,152,57,.35);
  outline-offset: 2px;
}

.hamaco-cookie-btn-primary {
  background: #609839;
  color: #fff;
}

.hamaco-cookie-btn-primary:hover {
  background: #4f7f30;
}

.hamaco-cookie-btn-secondary {
  background: #f2f2f2;
  color: #222;
  border-color: #ddd;
}

.hamaco-cookie-btn-secondary:hover {
  background: #e6e6e6;
}

.hamaco-cookie-btn-settings {
  background: #991B1B;
  color: #fff;
}

.hamaco-cookie-btn-settings:hover {
  background: #7d1515;
}

/* Instellingen-modal */
.hamaco-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hamaco-cookie-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
}

.hamaco-cookie-modal-box {
  position: relative;
  width: min(620px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  color: #222;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  font-family: inherit;
}

.hamaco-cookie-modal-box h2 {
  margin: 0 35px 8px 0;
  color: #991B1B;
  font-size: 25px;
}

.hamaco-cookie-modal-box > p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.hamaco-cookie-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.hamaco-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid #e8e8e8;
}

.hamaco-cookie-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.hamaco-cookie-option span {
  display: block;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.hamaco-cookie-always {
  flex: 0 0 auto;
  color: #609839 !important;
  font-weight: 700;
  white-space: nowrap;
}

/* Schakelaar */
.hamaco-cookie-switch {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  flex: 0 0 50px;
}

.hamaco-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.hamaco-cookie-slider {
  position: absolute;
  inset: 0;
  display: block !important;
  background: #c9c9c9 !important;
  border-radius: 30px;
  cursor: pointer;
  transition: .2s;
}

.hamaco-cookie-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: .2s;
}

.hamaco-cookie-switch input:checked + .hamaco-cookie-slider {
  background: #609839 !important;
}

.hamaco-cookie-switch input:checked + .hamaco-cookie-slider::before {
  transform: translateX(22px);
}

.hamaco-cookie-modal-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}

@media (max-width: 800px) {
  .hamaco-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .hamaco-cookie-inner {
    display: block;
    padding: 18px;
  }

  .hamaco-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }

  .hamaco-cookie-actions .hamaco-cookie-btn-settings {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hamaco-cookie-actions .hamaco-cookie-btn-secondary {
    grid-column: 1;
    grid-row: 2;
  }

  .hamaco-cookie-actions .hamaco-cookie-btn-primary {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .hamaco-cookie-text h2 {
    font-size: 18px;
  }

  .hamaco-cookie-text p {
    font-size: 13px;
  }

  .hamaco-cookie-modal-box {
    padding: 22px 18px;
  }

  .hamaco-cookie-option {
    align-items: flex-start;
  }

  .hamaco-cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hamaco-cookie-modal-actions .hamaco-cookie-btn {
    width: 100%;
  }
}
