/* =====================================================
   GLOBAL
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   CONTAINER
===================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   ADVISORY BAR
===================================================== */

.advisory-wrapper {
  width: 100%;
  height: 36px;
  overflow: hidden;
  background: #ce2200;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.advisory-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: advisory-scroll 30s linear infinite;
}

.advisory-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-right: 150px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

/* =====================================================
   READ MORE
===================================================== */

.advisory-wrapper .read-more {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffdada;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.read-more:hover {
  color: #ffffff;
}

/* =====================================================
   ADVISORY ANIMATION
===================================================== */

@keyframes advisory-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.advisory-wrapper:hover .advisory-track {
  animation-play-state: paused;
}

/* =====================================================
   MODAL BACKDROP
===================================================== */

.modal {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.5);

  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   MODAL DIALOG
===================================================== */

.modal-dialog {
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;

  display: flex;
  flex-direction: column;

  background: #ffffff;

  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

  transform: translateY(-20px) scale(0.98);

  transition: transform 0.25s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* =====================================================
   MODAL HEADER
===================================================== */

.modal-header {
  min-height: 88px;

  padding: 20px 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  border-bottom: 1px solid #dddddd;

  background: #ffffff;
}

.modal-title {
  width: 100%;

  margin: 0;

  padding: 0 190px 0 30px;

  text-align: center;

  font-size: 26px;
  line-height: 1.2;

  color: #080a2d;
}

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

.modal-actions {
  position: absolute;

  right: 15px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;

  gap: 8px;
}

/* =====================================================
   LANGUAGE DROPDOWN
===================================================== */

.language-select {
  min-width: 100px;
  height: 42px;

  padding: 0 12px;

  border: 1px solid #dddddd;
  border-radius: 6px;

  background: #ffffff;

  color: #333333;

  font-size: 16px;

  cursor: pointer;

  outline: none;
}

.language-select:focus {
  border-color: #999999;
}

/* =====================================================
   MODAL CLOSE X
===================================================== */

.modal-header .modal-close {
  width: 35px;
  height: 35px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #555555;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;
  text-align: center;
}

.modal-close:hover {
  color: #000000;
}

/* =====================================================
   MODAL BODY
===================================================== */

.modal-body {
  padding: 20px;

  overflow-y: auto;

  max-height: 65vh;

  color: #080a2d;
}

.modal-body h3 {
  margin: 0 0 15px;

  font-size: 22px;
  line-height: 1.3;

  font-weight: 500;

  color: #080a2d;
}

.modal-body p {
  margin: 0 0 20px;

  font-size: 16px;
  line-height: 1.55;

  color: #080a2d;
}

.modal-body strong {
  font-weight: 700;
}

.modal-body ul {
  margin: 0;
  padding-left: 26px;
}

.modal-body li {
  margin-bottom: 18px;
  padding-left: 2px;

  font-size: 16px;
  line-height: 1.55;

  color: #080a2d;
}

/* =====================================================
   SCROLLBAR
===================================================== */

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #999999;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #777777;
}

/* =====================================================
   MODAL FOOTER
===================================================== */

.modal-footer {
  min-height: 92px;

  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  border-top: 1px solid #dddddd;

  background: #ffffff;
}

#consumerAdvisoryModal .close-btn {
  padding: 12px 22px;

  border: 0;
  border-radius: 6px;

  background: #0d6efd;

  color: #ffffff;

  font-size: 16px;

  cursor: pointer;
}

.close-btn:hover {
  background: #0b5ed7;
}

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

@media screen and (max-width: 900px) {
  .modal-dialog {
    max-width: 90%;
  }

  .modal-title {
    font-size: 26px;
    padding-right: 180px;
  }

  .modal-body h3 {
    font-size: 22px;
  }

  .modal-body p,
  .modal-body li {
    font-size: 16px;
  }
}

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

@media screen and (max-width: 768px) {
  .advisory-wrapper {
    height: 36px;
  }

  .advisory-item {
    font-size: 12px;
    margin-right: 100px;
  }

  .read-more {
    margin-left: 6px;
  }

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

  .modal {
    padding: 10px;
  }

  .modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;

    border-radius: 8px;
  }

  .modal-header {
    min-height: 120px;

    padding: 15px;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .modal-title {
    padding: 0 50px 0 0;

    text-align: left;

    font-size: 19px;

    line-height: 1.3;
  }

  .modal-actions {
    top: auto;
    right: 15px;
    bottom: 15px;

    transform: none;

    gap: 6px;
  }

  .language-select {
    min-width: 100px !important;
    height: 36px;

    font-size: 14px;
  }

  .modal-header .modal-close {
    width: 32px;
    height: 32px;

    font-size: 28px !important;
  }

  .modal-body {
    padding: 18px;

    max-height: 60vh;
  }

  .modal-body h3 {
    font-size: 18px;
  }

  .modal-body p,
  .modal-body li {
    font-size: 14px;
    line-height: 1.6;
  }

  .modal-body li {
    margin-bottom: 14px;
  }

  .modal-footer {
    min-height: 70px;
    padding: 15px;
  }

  .close-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
