.vht-cookie,
.vht-cookie * {
  box-sizing: border-box;
}

.vht-cookie [hidden] {
  display: none !important;
}

body.vht-cookie-modal-open {
  overflow: hidden !important;
}

.vht-cookie__bar {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: 100%;
  padding: 18px max(20px, calc((100vw - 1580px) / 2));
  color: #fff;
  background: rgba(var(--vht-cookie-bar-rgb, 0, 0, 0), var(--vht-cookie-bar-opacity, .88));
  border-top: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-family: Arial, Helvetica, sans-serif;
}

.vht-cookie__bar-copy {
  min-width: 0;
}

.vht-cookie__bar h2,
.vht-cookie__dialog h2,
.vht-cookie__category h3,
.vht-cookie__bar p,
.vht-cookie__dialog p {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: none;
}

.vht-cookie__bar h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.vht-cookie__bar p {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.55;
}

.vht-cookie__bar-copy > a {
  display: inline-block;
  margin-left: 8px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.vht-cookie__bar-copy > a:hover,
.vht-cookie__bar-copy > a:focus {
  color: #fff;
  border-color: #fff;
}

.vht-cookie__bar-actions {
  display: flex;
  gap: 9px;
  align-items: stretch;
}

.vht-cookie__button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.vht-cookie__button:hover {
  transform: translateY(-1px);
}

.vht-cookie__button:focus-visible,
.vht-cookie__x:focus-visible,
.vht-cookie__reopen:focus-visible,
.vht-cookie__switch input:focus-visible + span {
  outline: 3px solid rgba(15, 112, 183, .35);
  outline-offset: 2px;
}

.vht-cookie__button--primary {
  color: #fff;
  background: var(--vht-cookie-primary, #f39200);
  border-color: var(--vht-cookie-primary, #f39200);
}

.vht-cookie__button--secondary {
  color: #fff;
  background: var(--vht-cookie-secondary, #0f70b7);
  border-color: var(--vht-cookie-secondary, #0f70b7);
}

.vht-cookie__button--outline {
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .8);
}

.vht-cookie__button--outline:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.vht-cookie__button--outline-dark {
  color: #222;
  background: #fff;
  border-color: #cfd4da;
}

.vht-cookie__button--save {
  color: #fff;
  background: var(--vht-cookie-primary, #f39200);
  border-color: var(--vht-cookie-primary, #f39200);
}

.vht-cookie__overlay {
  position: fixed;
  z-index: 2147483500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .63);
  font-family: Arial, Helvetica, sans-serif;
}

.vht-cookie__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 30px 34px 20px;
  color: #2a2d31;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.vht-cookie__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #60646a;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  font-weight: 400;
  line-height: 34px;
}

.vht-cookie__x:hover {
  color: #111;
  background: #f2f4f6;
}

.vht-cookie__dialog-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 32px;
  padding: 0 0 22px;
}

.vht-cookie__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 46px;
  margin-bottom: 13px;
}

.vht-cookie__brand img {
  display: block;
  width: auto;
  max-width: 320px;
  height: auto;
  max-height: 94px;
  object-fit: contain;
}

.vht-cookie__brand h2 {
  margin: 0;
  color: #1e2328;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.vht-cookie__intro > p {
  margin: 0 0 12px;
  color: #555d65;
  font-size: 14px;
  line-height: 1.55;
}

.vht-cookie__policy {
  color: var(--vht-cookie-secondary, #0f70b7);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  text-decoration: none;
}

.vht-cookie__dialog-actions {
  display: grid;
  gap: 9px;
  align-content: start;
  padding-top: 10px;
}

.vht-cookie__dialog-actions .vht-cookie__button {
  width: 100%;
}

.vht-cookie__categories {
  border-top: 1px solid #e5e8eb;
}

.vht-cookie__category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid #e5e8eb;
}

.vht-cookie__category h3 {
  margin: 0 0 5px;
  color: #262b30;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.vht-cookie__category p {
  margin: 0;
  color: #687078;
  font-size: 13px;
  line-height: 1.5;
}

.vht-cookie__switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  margin: 0;
}

.vht-cookie__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vht-cookie__switch span {
  position: absolute;
  inset: 0;
  display: block;
  background: #d8dadd;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.vht-cookie__switch span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  content: '';
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  transition: transform .2s ease;
}

.vht-cookie__switch input:checked + span {
  background: var(--vht-cookie-secondary, #0f70b7);
}

.vht-cookie__switch input:checked + span::before {
  transform: translateX(24px);
}

.vht-cookie__switch--locked span {
  cursor: not-allowed;
  opacity: .62;
}

/* Buton rotund pentru redeschiderea setarilor cookie */
.vht-cookie__reopen {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  gap: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #122d2e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vht-cookie__reopen svg {
  display: block;
  width: 29px;
  height: 29px;
}

.vht-cookie__reopen:hover,
.vht-cookie__reopen:focus {
  color: #ffffff;
  background: #0f70b7;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.32);
  outline: none;
}

@media (max-width: 767px) {
  .vht-cookie__reopen {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .vht-cookie__reopen svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 991px) {
  .vht-cookie__bar {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px 20px;
  }

  .vht-cookie__bar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vht-cookie__bar {
    gap: 14px;
    padding: 17px 14px max(17px, env(safe-area-inset-bottom));
  }

  .vht-cookie__bar h2 {
    font-size: 15px;
  }

  .vht-cookie__bar p,
  .vht-cookie__bar-copy > a {
    font-size: 12px;
  }

  .vht-cookie__bar-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .vht-cookie__button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .vht-cookie__overlay {
    align-items: end;
    padding: 0;
  }

  .vht-cookie__dialog {
    width: 100%;
    max-height: 94vh;
    padding: 25px 18px 18px;
    border-radius: 16px 16px 0 0;
  }

  .vht-cookie__dialog-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vht-cookie__dialog-actions {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }

  .vht-cookie__brand {
    padding-right: 35px;
  }

  .vht-cookie__brand img {
    max-width: 145px;
    max-height: 38px;
  }

  .vht-cookie__brand h2 {
    font-size: 19px;
  }

  .vht-cookie__category {
    gap: 15px;
    padding: 15px 0;
  }

  .vht-cookie__reopen > span:last-child {
    display: none;
  }

  .vht-cookie__reopen {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vht-cookie__button,
  .vht-cookie__switch span,
  .vht-cookie__switch span::before {
    transition: none;
  }
}
