/* =========================================================
   ELEON COOKIE CONSENT
   HELIOS DARK / LIGHT
   ========================================================= */


/* =========================================================
   WRAPPER
   ========================================================= */

.eleon-cookie-consent {
  position: fixed;

  left: 24px;
  right: 24px;

  /* puțin mai sus */
  bottom: 34px;

  z-index: 9999998;

  display: flex;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transform: translateY(14px);

  pointer-events: none;

  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .22s ease;
}


.eleon-cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;
}


.eleon-cookie-consent.is-closing {
  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  pointer-events: none;
}


/* =========================================================
   CARD
   ========================================================= */

.eleon-cookie-card {
  display: flex;
  align-items: center;

  gap: 18px;

  width: min(
    920px,
    100%
  );

  min-height: 92px;

  padding: 18px 20px;

  border:
    1px solid
    var(--hd-border);

  border-radius: 16px;

  background:
    color-mix(
      in srgb,
      var(--hd-surface) 96%,
      transparent
    );

  box-shadow:
    0 20px 60px
    rgba(0,0,0,.30);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   ICON
   ========================================================= */

.eleon-cookie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  border-radius: 13px;

  background:
    rgba(110,156,255,.12);

  color: #6e9cff;
}


.eleon-cookie-icon i {
  margin: 0;
  padding: 0;

  font-size: 17px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.eleon-cookie-content {
  display: flex;
  align-items: center;

  gap: 22px;

  min-width: 0;

  flex: 1;
}


/* =========================================================
   COPY
   ========================================================= */

.eleon-cookie-copy {
  min-width: 0;

  flex: 1;
}


.eleon-cookie-title {
  display: block;

  margin: 0 0 7px;

  color: var(--hd-text);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}


.eleon-cookie-message {
  margin: 0;

  max-width: 680px;

  color: var(--hd-subtle);

  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}


/* =========================================================
   POLICY
   ========================================================= */

.eleon-cookie-policy {
  margin-left: 5px;

  color: #6e9cff;

  font-weight: 700;

  text-decoration: none;
}


.eleon-cookie-policy:hover {
  text-decoration: underline;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.eleon-cookie-actions {
  display: flex;
  align-items: center;

  gap: 10px;

  flex: 0 0 auto;
}


/* =========================================================
   BUTTON BASE
   ========================================================= */

.eleon-cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 40px;

  margin: 0;
  padding: 9px 14px;

  border-radius: 10px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

  outline: none;

  transition:
    border-color .16s ease,
    background-color .16s ease,
    color .16s ease,
    transform .16s ease;
}


.eleon-cookie-button:active {
  transform: translateY(1px);
}


/* =========================================================
   IGNORE
   ========================================================= */

.eleon-cookie-ignore {
  border:
    1px solid
    var(--hd-border);

  background:
    transparent;

  color:
    var(--hd-subtle);
}


.eleon-cookie-ignore:hover {
  border-color:
    color-mix(
      in srgb,
      var(--hd-border) 65%,
      #fff
    );

  color:
    var(--hd-text);
}


/* =========================================================
   ACCEPT
   ========================================================= */

.eleon-cookie-accept {
  border:
    1px solid
    rgba(110,156,255,.34);

  background:
    rgba(110,156,255,.16);

  color:
    #91b5ff;
}


.eleon-cookie-accept:hover {
  background:
    rgba(110,156,255,.23);

  border-color:
    rgba(110,156,255,.48);
}


.eleon-cookie-accept i {
  margin: 0;
  padding: 0;

  font-size: 10px;
}


/* =========================================================
   LIGHT MODE
   ========================================================= */

:root[data-theme="light"]
.eleon-cookie-card {
  box-shadow:
    0 18px 45px
    rgba(40,50,75,.16);
}


:root[data-theme="light"]
.eleon-cookie-icon {
  background:
    rgba(65,105,225,.09);

  color:
    #4169e1;
}


:root[data-theme="light"]
.eleon-cookie-accept {
  color:
    #315bc9;

  background:
    rgba(65,105,225,.10);

  border-color:
    rgba(65,105,225,.24);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

  .eleon-cookie-card {
    align-items: flex-start;
  }


  .eleon-cookie-content {
    flex-direction: column;
    align-items: stretch;

    gap: 14px;
  }


  .eleon-cookie-actions {
    width: 100%;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .eleon-cookie-consent {
    left: 12px;
    right: 12px;

    bottom: 18px;
  }


  .eleon-cookie-card {
    gap: 12px;

    min-height: 0;

    padding: 15px;
  }


  .eleon-cookie-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }


  .eleon-cookie-title {
    font-size: 13px;
  }


  .eleon-cookie-message {
    font-size: 10px;
    line-height: 1.6;
  }


  .eleon-cookie-button {
    flex: 1;
  }

}


@media (max-width: 440px) {

  .eleon-cookie-actions {
    flex-direction: column;
  }


  .eleon-cookie-button {
    width: 100%;
  }

}