.yv-consent[hidden],
.yv-consent-dialog[hidden] { display: none !important; }

.yv-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 18px;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  color: #0b172b;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .2);
  backdrop-filter: blur(18px);
  font-family: Inter, Arial, sans-serif;
}

.yv-consent strong { display: block; margin-bottom: 5px; font-size: 17px; }
.yv-consent p { max-width: 700px; margin: 0; color: #5d6b82; font-size: 14px; line-height: 1.55; }
.yv-consent a { color: #1269e8; text-decoration: underline; }
.yv-consent-actions, .yv-consent-panel-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.yv-consent button,
.yv-consent-dialog button,
.yv-consent-manage {
  border: 1px solid #d7deea;
  border-radius: 999px;
  padding: 11px 17px;
  background: #fff;
  color: #0b172b;
  font: 700 13px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.yv-consent button.is-primary,
.yv-consent-dialog button.is-primary { border-color: #1269e8; background: #1269e8; color: #fff; }

.yv-consent-dialog {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 13, 28, .58);
  font-family: Inter, Arial, sans-serif;
}

.yv-consent-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 25px;
  border-radius: 24px;
  background: #fff;
  color: #0b172b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.yv-consent-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.yv-consent-head strong { font-size: 24px; }
.yv-consent-head button { width: 38px; height: 38px; padding: 0; font-size: 22px; }
.yv-consent-panel > p { color: #66758c; line-height: 1.55; }

.yv-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid #e6ebf2;
}

.yv-consent-option span { display: grid; gap: 5px; }
.yv-consent-option small { color: #6b7890; line-height: 1.45; }
.yv-consent-option input { width: 21px; height: 21px; accent-color: #1269e8; }
.yv-consent-panel-actions { justify-content: flex-end; margin-top: 20px; }

.yv-consent-manage {
  position: fixed;
  z-index: 9998;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  opacity: .72;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .13);
}
.yv-consent-manage:hover { opacity: 1; }

@media (max-width: 760px) {
  .yv-consent { align-items: stretch; flex-direction: column; gap: 16px; padding: 19px; }
  .yv-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .yv-consent-actions .is-primary { grid-column: 1 / -1; }
  .yv-consent button { justify-content: center; }
  .yv-consent-panel { padding: 21px; }
  .yv-consent-panel-actions { display: grid; grid-template-columns: 1fr; }
}

