
.consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consent-modal-open {
  overflow: hidden !important;
}

.reject-btn svg {
  width: 16px;
  height: 16px;
}

.consent-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.consent-card {
  width: 900px;
  max-width: 100%;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.consent-card .card-body {
  padding: 22px 26px;
}

.consent-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shield-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-icon svg {
  width: 20px;
  height: 20px;
  color: #084684;
}

.consent-content {
  flex: 1;
}

.consent-language-wrapper {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  height: 34px;
  overflow: hidden;
}

.consent-language-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 10px;
  color: #667085;
  flex-shrink: 0;
}

.consent-language-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: #667085;
  fill: none;
}

.consent-language-select {
  border: none !important;
  border-left: 1px solid #e4e7ec !important;
  background: transparent !important;
  font-size: 12.5px !important;
  color: #344054 !important;
  padding: 0 28px 0 8px !important;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  height: 34px;
  line-height: 34px;
  -webkit-appearance: auto;
  appearance: auto;
  max-width: 150px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.header-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #003366;
}

.header-content {
  margin-top: 10px !important;
}

.header-content p {
  margin: 0 !important;
  margin-bottom: 5px !important;
  font-size: 14px;
  line-height: 1.5;
  color: #667085;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.privacy-link {
  color: #003366;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.privacy-link-arrow {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.privacy-link:hover .privacy-link-arrow {
  opacity: 1;
}

.privacy-link:hover {
  text-decoration: underline;
}

.privacy-link-separator {
  color: #9ca3af;
}

.consent-small-text {
  font-size: 13px;
  margin-top: 5px;
  color: #666;
}

.consent-age-line {
  margin-top: 10px;
  padding: 8px 16px;
  background: #eef4ff;
  border: 1px solid #c9e1f9;
  border-radius: 8px;
   margin-bottom: 10px;
  font-size: 13px;
  color: #003366;
  /* display: flex;
  align-items: center;
  justify-content: space-between; */
  flex-wrap: nowrap;
}

.consent-age-line b {
  color: #003366;
}

.underage-link {
  border: none;
  background: none;
  color: #003366;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

.underage-link:hover {
  color: #003366;
}

.consent-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.customize-toggle {
  background: none;
  border: none;
  color: #333;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.customize-toggle:hover {
  color: #9c9b9b;
}

.customize-icon {
  transition: transform 0.3s ease;
  font-size: 16px;
  align-items: center;
  display: flex;
}

.customize-icon.open {
  transform: rotate(180deg);
}

.reject-btn {
  background: #ffff;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.reject-btn:hover {
  background: #e8e8e8;
}

.accept-btn {
  background: #004b8d;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.accept-btn:hover {
  background: #003366;
  box-shadow: 0 4px 12px rgba(0, 75, 141, 0.3);
}

.customize-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.customize-content.open {
  max-height: 800px;
  /* overflow-y: auto; */
}

.preference-item {
  padding-top: 10px;
  border-bottom: 1px solid #eee;
}

.preference-item:last-child {
  border-bottom: none;
}

.preference-item h5 {
  font-size: 14px;
  /* font-weight: 700 !important; */
  color: black;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.preference-item .custom-control {
  margin-top: 0px;
}

.always-active-text {
  font-size: 12px;
  color: #666;
  padding: 2px 8px;
  border-radius: 4px;
}

.preference-item p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 5px !important;
}

.legal-basis {
  font-size: 12px;
  color: #666;
  font-style: italic;
}


/* Under 18 Modal */
.consent-overlay.align-items-center {
  align-items: center;
}

.language-selector .gt_switcher .gt_option {
  right: 0px;
  width: min-content !important;
  top: 45px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .consent-actions {
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  .language-selector .gt_switcher .gt_option {
    top: 36px !important;
  }

  .consent-action-buttons {
    flex-wrap: nowrap !important;
    display: flex;
    gap: 8px;
  }

  .reject-btn,
  .accept-btn {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 13px;
  }

  .customize-toggle {
    white-space: nowrap;
  }

  .consent-card {
    max-width: 100%;
    margin: 10px;
  }

  .consent-card .card-body {
    padding: 20px;
  }

  .consent-age-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .consent-action-buttons {
    order: 1;
  }

  .language-selector .gt_switcher .gt_selected a {
    padding: 5px 2px 5px 2px !important;
  }

  .consent-header {
    gap: 10px;
    align-items: flex-start;
  }

  .language-selector .gt_switcher {
    width: 175px !important;
  }

  .shield-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .shield-icon svg {
    width: 18px;
    height: 18px;
  }

  .header-top {
    align-items: flex-start;
    gap: 8px;
  }

  .header-title h2 {
    font-size: 16px;
  }

  .language-selector {
    width: auto;
    max-width: 140px;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .consent-action-buttons {
    flex-direction: column !important;
  }
.consent-language-select{
	max-width:90px;
}
  .consent-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .shield-icon {
    display: none;
  }

  .consent-content {
    width: 100%;
  }

  /* Title + Language selector on same row */
  .header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .header-title {
    flex: 1;
  }

  .header-title h2 {
    font-size: 15px;
    margin: 0;
  }

  /* Compact language selector */
  .language-selector {
    width: 44px;
    min-width: 44px;
    height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .language-selector .gt_switcher,
  .language-selector .gt_selected {
    width: 100% !important;
    height: 100%;
  }

  .language-selector .gt_selected a {
    width: 100% !important;
    height: 100% !important;
    padding: 0 8px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  /* Show only flag */
  .language-selector .gt_selected img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  /* Description */
  .header-content p {
    font-size: 13px;
    line-height: 1.5;
  }
}
/* ===== Custom Toggle (Bootstrap 3 Compatible) ===== */

.preference-item .custom-control {
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.preference-item .custom-control-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.preference-item .custom-control-label {
    display: block;
    width: 48px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.preference-item .custom-control-label::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: all .3s ease;
}

.preference-item .custom-control-label::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: all .3s ease;
}

.preference-item .custom-control-input:checked + .custom-control-label::before {
    background: #004b8d;
}

.preference-item .custom-control-input:checked + .custom-control-label::after {
    transform: translateX(24px);
}

.preference-item .custom-control-input:disabled + .custom-control-label::before {
    background: #004b8d;
    opacity: .8;
    cursor: not-allowed;
}

.preference-item .custom-control-input:disabled + .custom-control-label::after {
    background: #fff;
}

.preference-item .custom-control-input:focus + .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(0,75,141,.15);
}
/* Layout for each preference row */
.preference-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-top: 10px;
    border-bottom: 1px solid #eee;
}

/* Switch on left */
.preference-item .custom-control {
    flex: 0 0 48px;
    width: 48px;
    margin: 2px 0 0;
}

/* Content on right */
.preference-item > div:last-child {
    flex: 1;
    min-width: 0;
}
