/* VYEDI Cookie Consent — cream, terracotta and gold */

#vyedi-cookie-banner,
#vyedi-cookie-preferences {
  font-family: inherit;
  color: #2b211b;
  box-sizing: border-box;
}

#vyedi-cookie-banner *,
#vyedi-cookie-preferences * {
  box-sizing: border-box;
}

#vyedi-cookie-banner {
  position: fixed;
  z-index: 99990;
  left: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 32px));
  padding: 22px;
  background: #fffdf9;
  border: 1px solid #eadfce;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(43, 33, 27, .20);
}

.vyedi-cookie-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vyedi-cookie-logo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8f0e5;
}

.vyedi-cookie-title {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #2b211b;
}

.vyedi-cookie-subtitle {
  margin: 0;
  color: #796d64;
  font-size: 13px;
}

.vyedi-cookie-copy {
  margin: 0 0 12px;
  color: #51463e;
  font-size: 14px;
  line-height: 1.65;
}

.vyedi-cookie-links {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.vyedi-cookie-links a {
  color: #8b451f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vyedi-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.vyedi-cookie-button {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #9b4d20;
  border-radius: 7px;
  background: transparent;
  color: #8b451f;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.vyedi-cookie-button:hover {
  background: #f8f0e5;
}

.vyedi-cookie-button-primary {
  grid-column: 1 / -1;
  background: #8b451f;
  color: #fff;
}

.vyedi-cookie-button-primary:hover {
  background: #713514;
  color: #fff;
}

#vyedi-cookie-settings {
  display: inline-block;
  margin: 8px 12px;
  padding: 7px 10px;
  border: 1px solid #eadfce;
  border-radius: 6px;
  background: #fffdf9;
  color: #713514;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

#vyedi-cookie-preferences {
  position: fixed;
  z-index: 99991;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(30, 23, 19, .55);
}

.vyedi-cookie-dialog {
  width: min(460px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  background: #fffdf9;
  border: 1px solid #eadfce;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
}

.vyedi-cookie-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.vyedi-cookie-dialog p {
  color: #796d64;
  font-size: 14px;
  line-height: 1.6;
}

.vyedi-cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eadfce;
}

.vyedi-cookie-option label {
  font-weight: 650;
}

.vyedi-cookie-option small {
  display: block;
  margin-top: 4px;
  color: #796d64;
  font-weight: 400;
  line-height: 1.5;
}

.vyedi-cookie-option input {
  width: 19px;
  height: 19px;
  accent-color: #8b451f;
}

.vyedi-cookie-option input:disabled {
  cursor: not-allowed;
}

.vyedi-cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

#vyedi-cookie-banner button:focus-visible,
#vyedi-cookie-settings:focus-visible,
#vyedi-cookie-preferences button:focus-visible,
#vyedi-cookie-preferences input:focus-visible {
  outline: 3px solid #c89532;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  #vyedi-cookie-banner {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 17px;
    border-radius: 13px;
  }

  .vyedi-cookie-logo {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .vyedi-cookie-title {
    font-size: 19px;
  }

  .vyedi-cookie-copy {
    font-size: 13px;
  }

  .vyedi-cookie-button {
    padding: 10px 8px;
    font-size: 12px;
  }
}

/* CENTERED COOKIE CONSENT — DESKTOP AND MOBILE */
#vyedi-cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);

  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;

  margin: 0;
  box-sizing: border-box;
  z-index: 10000;
}

/* Keep the centered banner comfortable on small screens */
@media (max-width: 520px) {
  #vyedi-cookie-banner {
    width: calc(100vw - 24px);
    max-width: 420px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .vyedi-cookie-logo {
    width: 52px;
    height: 52px;
  }

  .vyedi-cookie-actions {
    gap: 8px;
  }
}
