/* Container chính - KHUNG CHỨA TẤT CẢ */
.consent-list {
  width: 100%;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Scroll area - TĂNG CHIỀU CAO ĐỂ HIỂN THỊ NHIỀU ITEMS HƠN */
.consent-scroll-area {
  width: 100%;
  max-height: 100px; /* TĂNG từ 50px lên 180px */
  overflow-y: auto;
  padding: 8px 10px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 12px; /* Khoảng cách với "Đồng ý tất cả" */
}

/* Scrollbar styling */
.consent-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.consent-scroll-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.consent-scroll-area::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.consent-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.consent-preface {
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 12px;
}

.consent-preface p {
  margin-bottom: 8px;
}

.text-link-blue {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.text-link-blue:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 4px 0;
}

.consent-item:last-child {
  margin-bottom: 0;
}

.consent-item .form-check-input {
  margin-top: 2px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-item .flex-1 {
  flex: 1;
}

.consent-name {
  font-weight: 500;
  font-size: 12px;
  color: #1f2937;
  line-height: 1.4;
  cursor: pointer;
}

.consent-req {
  color: #dc2626;
  margin-left: 2px;
  font-weight: 600;
}

.consent-actions {
  margin-top: 4px;
}

.consent-actions a {
  font-size: 11px;
  text-decoration: underline;
  color: #2563eb;
  cursor: pointer;
  font-weight: 400;
}

.consent-actions a:hover {
  color: #1d4ed8;
}

/* Checkbox "Đồng ý tất cả" - Ở NGOÀI SCROLL AREA, STYLED NỔI BẬT */
.consent-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f0f9ff; /* Màu xanh nhạt */
  border: 1px solid #0ea5e9; /* Border xanh */
  border-radius: 6px;
  margin: 0;
}

.consent-select-all .form-check-input {
  margin-top: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.consent-select-all-label {
  color: #1f2937;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

.consent-text {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.modal-backdrop {
  display: none !important;
  opacity: 0 !important;
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
  .consent-list {
    padding: 10px;
  }

  .consent-scroll-area {
    padding: 6px 8px;
    max-height: 100px; /* Thu nhỏ trên mobile */
    margin-bottom: 10px;
  }

  .consent-select-all {
    padding: 8px 10px;
  }

  .consent-name {
    font-size: 11px;
  }

  .consent-select-all-label {
    font-size: 12px;
  }

  .consent-preface {
    font-size: 11px;
  }

  #modalPolicy .modal-content {
    border-radius: 0;
  }

  #modalPolicy .modal-header {
    padding: 12px 16px;
  }

  #modalPolicy .modal-title {
    font-size: 16px;
    font-weight: 700;
  }

  #modalPolicy .btn-close {
    transform: scale(1.15);
  }

  #modalPolicy .modal-body {
    padding: 12px 16px;
  }
}

.consent-intro-text {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Tablet trở lên */
@media (min-width: 576px) {
  #modalPolicy .modal-body {
    max-height: 70vh;
    overflow-y: auto;
  }
}