/* General styles */
#country-selector-container {
  margin: 20px 0;
}

#country-selector {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Policy content styles */
.policy-content {
  padding: 15px;
  border-radius: 4px;
  margin-top: 2px;
}

/* 统一的标题样式 - 适用于 .policy-content 和 .policy-collapse */
.policy-content h2,
.policy-collapse h2 {
  margin-top: 0 !important;
  font-size: 1.5em;
  line-height: 1.4;
}

.policy-content h3,
.policy-collapse h3 {
  font-size: 1.125rem; /* h4 size */
  font-weight: 600;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
}

.policy-content h4,
.policy-collapse h4 {
  font-size: 1rem; /* h5 size */
  font-weight: 600;
  margin-top: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

.policy-content h5,
.policy-collapse h5 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

/* 段落间距 */
.policy-content p,
.policy-collapse p {
  margin-bottom: 0.75rem;
}

/* Policy colors - Light theme */
.policy-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #000000;
  border-left: 4px solid #28a745;
}

.policy-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #000000;
  border-left: 4px solid #ffc107;
}

.policy-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #000000;
  border-left: 4px solid #dc3545;
}

/* Dark theme styles */
.policy-content.dark-theme,
.policy-header.dark-theme {
  color: #ffffff !important;
}

.policy-success.dark-theme {
  background-color: rgba(40, 167, 69, 0.2);
}

.policy-warning.dark-theme {
  background-color: rgba(255, 193, 7, 0.2);
}

.policy-danger.dark-theme {
  background-color: rgba(220, 53, 69, 0.2);
}

/* 统一的暗色主题文本颜色 */
.policy-content.dark-theme p, 
.policy-content.dark-theme li, 
.policy-content.dark-theme h2, 
.policy-content.dark-theme h3, 
.policy-content.dark-theme h4,
.policy-content.dark-theme h5,
.policy-content.dark-theme strong,
.policy-content.dark-theme em,
.policy-content.dark-theme blockquote,
.policy-content.dark-theme a,
.policy-collapse.dark-theme p, 
.policy-collapse.dark-theme li, 
.policy-collapse.dark-theme h2, 
.policy-collapse.dark-theme h3, 
.policy-collapse.dark-theme h4,
.policy-collapse.dark-theme h5,
.policy-collapse.dark-theme strong,
.policy-collapse.dark-theme em,
.policy-collapse.dark-theme blockquote,
.policy-collapse.dark-theme a {
  color: #ffffff !important;
}

/* Special styling for blockquotes in dark theme */
.policy-content.dark-theme blockquote {
  color: #e0e0e0 !important;
  border-left: 3px solid #666;
}

/* Policy section styles */
.policy-section {
  margin-bottom: 16px;
}

.policy-header {
  padding: 12px 12px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.policy-header:hover {
  opacity: 0.9;
}

.policy-title {
  flex: 1;
  font-size: 1.5em;
  line-height: 1.4;
  margin: 0;
}

.toggle-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
  margin-left: 10px;
}

.policy-collapse {
  display: none;
  padding: 15px;
  border-radius: 0 0 4px 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Header colors - Light theme */
.policy-header.policy-success {
  background-color: rgba(40, 167, 69, 0.2);
  border-left: 4px solid #28a745;
}

.policy-header.policy-warning {
  background-color: rgba(255, 193, 7, 0.2);
  border-left: 4px solid #ffc107;
}

.policy-header.policy-danger {
  background-color: rgba(220, 53, 69, 0.2);
  border-left: 4px solid #dc3545;
}

/* Header colors - Dark theme */
.policy-header.policy-success.dark-theme {
  background-color: rgba(40, 167, 69, 0.3);
}

.policy-header.policy-warning.dark-theme {
  background-color: rgba(255, 193, 7, 0.3);
}

.policy-header.policy-danger.dark-theme {
  background-color: rgba(220, 53, 69, 0.3);
}

/* 特殊的 collapse 内容间距调整 */
.policy-collapse h2 {
  margin-top: 0 !important;
}

.policy-collapse h3 {
  margin-top: 0.5rem !important;
}

.policy-collapse h4,
.policy-collapse h5 {
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
}