.cookie-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-title-primary);
  border-radius: var(--border-raduis-default);
  width: 100%;
  gap: 12px;
  padding: 16px;
  max-width: 600px;
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
  pointer-events: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  --_filter: blur(5px) saturate(200%);
  background-color: var(--bg-popup-message-primary);
  backdrop-filter: var(--_filter);
  -webkit-backdrop-filter: var(--_filter);
  z-index: 12;
}

.cookie-modal .cookie-modal-image {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: url('/img/icon/faq/njdweb-cookie-50.png') no-repeat;
}

.cookie-modal .cookie-modal-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-modal-message h4 {
  font-size: 14px;
  font-weight: 700;
}

.cookie-modal-message h4 a {
  text-decoration: underline;
  text-decoration-style: dashed;
  font-weight: 400;
  margin-left: 6px;
  color: var(--color-text-paragraph-primary);
  text-underline-offset: 5px;
}

.cookie-modal-message p {
  font-size: 14px;
  margin: 10px 0;
}

.cookie-modal-message .cookie-section {
  background: transparent;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.cookie-modal-message .cookie-section span {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.cookie-modal-message .toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-message .toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: var(--bg-button-seventh);
  border-radius: var(--border-raduis-default);
  position: relative;
  cursor: pointer;
  border: var(--size-border-solid) solid var(--bg-button-primary);
}

.cookie-modal-message .toggle::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-text-button-primary);
  border-radius: 50%;
  top: 1px;
  left: 2px;
  transition: 0.3s;
}

.cookie-modal-message .toggle:checked::before {
  left: 20px;
  background: var(--bg-button-primary);
}

.cookie-modal-message .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.cookie-modal-message .buttons button {
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.cookie-modal-message .accept-all {
  background: var(--bg-button-third);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cookie-modal-message .accept-all:hover {
  background: var(--hover-button-primary);
  color: var(--white);
}

.cookie-modal-message .accept-necessary {
  background: var(--bg-button-sixth);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cookie-modal-message .accept-necessary:hover {
  background: var(--color-text-title-primary);
  color: var(--white);
}

.cookie-modal-message .save {
  background: var(--bg-button-sixth);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cookie-modal-message .save:hover {
  background: var(--color-text-title-primary);
  color: var(--white);
}

.btn-profile {
  display: flex;
  background: var(--color-default);
  overflow: hidden;
  align-items: center;
  border-radius: var(--border-raduis-default);
  padding: 2px;
  background: var(--color-default);
  border: var(--size-border-solid) solid var(--border-color-btn);
  color: var(--color-icon);
  cursor: pointer;
}

.btn-profile .profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.btn-profile i.icon-chevron-up {
  font-size: 12px;
  color: var(--color-icon);
  margin: 0px 4px;
  transition: transform 0.5s ease;
}

.section-option {
  height: 200px;
  width: 100%;
  overflow-y: auto;
  border-radius: var(--border-raduis-default);
  background: var(--bg-button-fifth);
  border: var(--size-border-solid) solid var(--color-border-button-secondary);
}

.section-option .cookie-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-option::-webkit-scrollbar {
  width: 5px;
}

.section-option::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--border-raduis-default);
}

.section-option::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--border-raduis-default);
}

.section-option::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.icon-chevron-up {
  transition: transform 0.3s ease;
}

/* popup */

/* Button Style */
#openModal {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #7d5bbe;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal Box */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  --_filter: blur(5px) saturate(200%);
  background-color: var(--bg-popup-message-primary);
  backdrop-filter: var(--_filter);
  -webkit-backdrop-filter: var(--_filter);
  padding: 20px;
  border-radius: var(--border-raduis-default);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 500px;
  z-index: 101;
  animation: fadeIn 0.3s ease-in-out;
  border: var(--size-border-solid) solid var(--color-border-section-primary);
}

/* Modal Header */
.modal-header {
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-header span {
  font-size: 65px;
  margin-bottom: 10px;
  color: var(--color-text-button-primary);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-title-primary);
  margin-top: 10px;
}

.modal-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-text-paragraph-primary);
}

.modal-content a {
  text-decoration: underline;
  text-decoration-style: dashed;
  font-weight: 400;
  margin-left: 3px;
  color: var(--color-link-body-primary);
  text-underline-offset: 5px;
}

/* Close Button */
.modal .icon-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-button-primary);
  font-weight: bold;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Fix */
@media screen and (max-width: 480px) {
  .modal {
    width: 95%;
    max-width: 320px;
  }
}

.popu-configure {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.siderbar {
  margin: 0;
  display: flex;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 20px;
  background: var(--background-primary);
}

.left-sidebar {
  width: 350px;
  padding: 20px;
  box-sizing: border-box;
  border-right: 1px solid var(--color-border-button-secondary);
  border-top: none;
}

.terms-table {
  background: var(--bg-button-fifth);
  padding: 20px !important;
  border-radius: var(--border-raduis-default);
}

.right-sidebar {
  flex-grow: 1;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.left-sidebar ul {
  list-style: none;
  padding: 0;
}

.left-sidebar ul.list-number {
  list-style: disc;
  padding: 0;
  margin-left: 40px;
  color: var(--color-text-paragraph-primary);
}

.left-sidebar li {
  margin-bottom: 10px;
}

.left-sidebar a {
  text-decoration: none;
  color: var(--color-text-paragraph-primary);
}

.left-sidebar a:hover {
  text-decoration: underline;
}

/* Example media query for smaller screens (adjust as needed) */
@media screen and (max-width: 736px) {
  .siderbar {
    flex-direction: column-reverse;
    /* Stack sidebars vertically */
  }

  .left-sidebar {
    width: 100%;
    /* Left sidebar takes full width */
    border-right: none;
    border-top: 1px solid var(--color-border-button-secondary);
    /* Add bottom border */
  }

  .right-sidebar {
    width: 100%;
    /* Right sidebar takes full width */
  }
}

.inner img {
  background: var(--white);
}


.container-message1 {
  display: flex;
  align-items: center;
  font-size: 14px;
  background-color: #7CACF8;
  border-radius: var(--border-raduis-default);
  border: 2px solid var(--color-three);
  margin-bottom: 10px;
}

.container-message1 p {
  color: var(--color-icon);
  font-size: 16px;
  margin-bottom: 0 !important;
  margin-left: 5px;
  padding: 5px;
}

.container-message1 span {
  color: var(--color-icon);
  font-size: 1.5rem;
  margin-left: 10px;
}

.container-message1 p a {
  color: #fff;
  text-decoration: none;
}

.container-message1 p a:hover {
  text-decoration: underline;
}

.card-error {
  width: 100%;
  height: 290px;
  border-radius: var(--border-raduis-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: var(--size-border-solid) solid var(--color-border-button-secondary);
  background-color: var(--bg-button-fifth);
  color: var(--color-text-title-primary);
}

.card-error span {
  font-size: 3rem;
}

.card-error h4 {
  font-size: 18px;
  margin-top: 5px;
}

.flag-profile {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  cursor: pointer;
}

.ui-image-event {
  border-radius: var(--border-raduis-default);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.185);
}

/* settings ... */

.settings-modal {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-title-primary);
  border-radius: var(--border-raduis-default);
  width: 100%;
  gap: 12px;
  padding: 16px;
  max-width: 600px;
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
  pointer-events: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  --_filter: blur(5px) saturate(200%);
  background-color: var(--bg-popup-message-primary);
  backdrop-filter: var(--_filter);
  -webkit-backdrop-filter: var(--_filter);
  z-index: 12;
}

.settings-modal .settings-modal-image {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: url('/img/icon/settings/njdweb-dark-mode-50.png') no-repeat;
}

.settings-modal .settings-modal-image2 {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: url('/img/icon/settings/njdweb-desktop-48.png') no-repeat;
}

.settings-modal .settings-modal-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-modal-message h4 {
  font-size: 14px;
  font-weight: 700;
}

.settings-modal-message h4 a {
  text-decoration: underline;
  text-decoration-style: dashed;
  font-weight: 400;
  margin-left: 6px;
  color: var(--color-text-paragraph-primary);
  text-underline-offset: 5px;
}

.settings-modal-message p {
  font-size: 14px;
  margin: 10px 0;
}

.settings-modal-message .settings-section {
  background: transparent;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.settings-modal-message .settings-section span {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.settings-modal-message .toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-modal-message .toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: var(--bg-button-seventh);
  border-radius: var(--border-raduis-default);
  position: relative;
  cursor: pointer;
  border: var(--size-border-solid) solid var(--bg-button-primary);
}

.settings-modal-message .toggle::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-text-button-primary);
  border-radius: 50%;
  top: 1px;
  left: 2px;
  transition: 0.3s;
}

.settings-modal-message .toggle:checked::before {
  left: 20px;
  background: var(--color-text-button-primary);
}

.section-option .radio-group {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.section-option .custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  user-select: none;
}

.section-option .custom-radio input[type="radio"] {
  display: none;
}

.section-option .custom-radio span {
  font-weight: bold;
}

/* Styles when selected */
.section-option .custom-radio input[type="radio"]:checked + span {
  color: white;
}

.section-option .custom-radio input[type="radio"]:checked + span::before {
  content: "✔ ";
}

.section-option .custom-radio input[type="radio"]:checked ~ span {
  background-color: #333;
  padding: 4px 8px;
  border-radius: 4px;
}

.settings-modal-message .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.settings-modal-message .buttons button {
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.settings-modal-message .accept-all {
  background: var(--bg-button-third);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.settings-modal-message .accept-all:hover {
  background: var(--hover-button-primary);
  color: var(--white);
}

.settings-modal-message .accept-necessary {
  background: var(--bg-button-sixth);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.settings-modal-message .accept-necessary:hover {
  background: var(--color-text-title-primary);
  color: var(--white);
}

.settings-modal-message .save {
  background: var(--bg-button-sixth);
  color: var(--color-text-title-primary);
  font-weight: 700;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease;
}

.settings-modal-message .save:hover {
  background: var(--color-text-title-primary);
  color: var(--white);
}

.btn-profile {
  display: flex;
  background: var(--color-default);
  overflow: hidden;
  align-items: center;
  border-radius: var(--border-raduis-default);
  padding: 2px;
  background: var(--color-default);
  border: var(--size-border-solid) solid var(--border-color-btn);
  color: var(--color-icon);
  cursor: pointer;
}

.btn-profile .profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.btn-profile i.icon-chevron-up {
  font-size: 12px;
  color: var(--color-icon);
  margin: 0px 4px;
  transition: transform 0.5s ease;
}

.section-option {
  height: 200px;
  width: 100%;
  overflow-y: auto;
  border-radius: var(--border-raduis-default);
  background: var(--bg-button-fifth);
  border: var(--size-border-solid) solid var(--color-border-button-secondary);
}

.settings-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.settings-section-grid .select-item {
  height: 50px;
  padding: 10px;
  border-radius: var(--border-raduis-default);
  border: 1px solid var(--color-border-button-secondary);
  cursor: pointer;
  transition: border 0.3s ease;
}

.activeItem {
  border: 4px solid var(--color-border-hover-input-primary) !important;
}

.settings-section-grid .select-item:hover {
  border: 4px solid var(--color-border-hover-input-primary);
}

.section-option .settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-option::-webkit-scrollbar {
  width: 5px;
}

.section-option::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--border-raduis-default);
}

.section-option::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--border-raduis-default);
}

.section-option::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.icon-chevron-up {
  transition: transform 0.3s ease;
}