.page-setting-item {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.page-setting-item-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-setting-item-section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-setting-item-section-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  margin: 0;
}

.page-setting-item-section-subtitle {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
  margin: 0;
}

.page-setting-item-section-description {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Background Image Section */
.page-setting-item-background {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-setting-item-background-upload {
  width: 200px;
  height: 200px;
}

.page-setting-item-background-upload .ant-upload {
  width: 100%;
  height: 100%;
}

.page-setting-item-background-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  text-align: center;
}

.page-setting-item-background-upload-icon {
  font-size: 48px;
  color: rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
}

.page-setting-item-background-upload-text {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 4px;
}

.page-setting-item-background-upload-hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.page-setting-item-background-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-setting-item-background-info-item {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.page-setting-item-background-info-item::before {
  content: '•';
  color: rgba(0, 0, 0, 0.45);
  margin-right: 4px;
}

/* Terms & Conditions Section */
.page-setting-item-terms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-setting-item-terms-table {
  display: flex;
  flex-direction: column;
}

.page-setting-item-terms-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 16px;
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
}

.page-setting-item-terms-table-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-setting-item-terms-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-top: none;
  background: #ffffff;
  position: relative;
}

.page-setting-item-terms-table-row:last-child {
  border-radius: 0 0 8px 8px;
}

.page-setting-item-terms-table-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  overflow: visible;
  position: relative;
  min-height: 32px;
}

.page-setting-item-terms-table-cell .ant-form-item {
  position: relative;
  margin-bottom: 0 !important;
  width: 100%;
}

.page-setting-item-terms-table-cell .ant-form-item-label {
  display: none;
}

.page-setting-item-terms-table-cell .ant-form-item-control {
  position: relative;
}

.page-setting-item-terms-table-cell .ant-form-item-explain-error {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  white-space: normal;
  overflow: visible;
  z-index: 10;
  line-height: 1.4;
  font-size: 12px;
}

.page-setting-item-terms-table-cell-icon {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.45);
}

.page-setting-item-terms-table-cell-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-setting-item-terms-table-cell-url {
  color: rgba(0, 0, 0, 0.65);
}

.page-setting-item-terms-table-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
}


.page-setting-item-terms-add-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 16px;
}

.page-setting-item-terms-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.page-setting-item-terms-info-item {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.page-setting-item-terms-info-item::before {
  content: '•';
  color: rgba(0, 0, 0, 0.45);
  margin-right: 4px;
}

/* Empty State */
.page-setting-item-terms-empty {
  padding: 32px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

/* Input Error States */
.page-setting-item-terms-table-row.has-error .ant-input {
  border-color: #ff4d4f;
}

.page-setting-item-terms-table-row.has-error .ant-input:focus {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .page-setting-item {
    padding: 16px;
  }

  .page-setting-item-terms-table-row {
    padding: 12px;
  }
}

