.epub-preferences-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.setting-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 0.25rem 0;

  &:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 1rem;
  }
}

.setting-info {
  flex: 1;
  min-width: 0;

  .setting-label {
    display: block;
    font-weight: 600;
    color: var(--p-text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .setting-label-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;

    .setting-label {
      margin-bottom: 0;
      flex-shrink: 0;
      min-width: 100px;
    }

    .radio-group {
      display: flex;
      gap: 1.5rem;

      @media (max-width: 768px) {
        flex-direction: column;
        gap: 0.75rem;
      }
    }
  }

  .setting-description {
    color: var(--p-text-muted-color);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
  }
}

.radio-group {
  display: flex;
  gap: 1.5rem;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  label {
    font-size: 0.875rem;
    color: var(--p-text-color);
    cursor: pointer;
  }
}

.font-size-controls {
  display: flex;
  align-items: center;
  gap: 1rem;

  .font-size-value {
    min-width: 3rem;
    text-align: center;
    font-weight: 500;
    color: var(--p-text-color);
  }
}
